/* Q24 story layout only. Colours, surfaces and controls use the existing system. */
.thematic-results__topic[hidden],.thematic-results__conclusion[hidden],.background-chapter[hidden] {display:none!important;}
.q24-theme-story {min-width:0;}
.q24-theme-story__steps {display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:1rem 0 1.25rem;font-size:.8rem;}
.q24-theme-story__steps a {padding:.3rem 0;text-underline-offset:.25em;}
.q24-theme-story__steps a[aria-current=step] {font-weight:600;color:var(--color-ink);text-decoration-thickness:2px;}
.q24-theme-story__layout {display:block;}
.q24-theme-story__step {position:relative;padding:1.25rem 0 1.5rem;scroll-margin-top:var(--single-page-anchor-offset);}
.q24-theme-story__step h3 {font:600 clamp(1.2rem,2vw,1.55rem)/1.25 var(--font-sans);margin:.5rem 0 .8rem;}
.q24-theme-story__number,.q24-theme-story__scope {font-size:.75rem;font-weight:600;color:var(--color-accent);}
.q24-theme-story__copy,.q24-theme-story__finding {font-size:.93rem;line-height:1.65;}
.q24-theme-story__finding {border-left:2px solid var(--color-rule-strong);padding-left:.85rem;margin:1.5rem 0;}
.q24-theme-story__note,.q24-theme-story__population {font-size:.75rem;color:var(--color-muted);line-height:1.5;}
.q24-theme-story__population p {margin:0;overflow-wrap:anywhere;}
.q24-theme-story__comparison {font-weight:600;}
.q24-theme-story__comparison a {color:var(--color-accent);text-underline-offset:.15em;}
.q24-theme-story__note:empty {display:none;}
.q24-theme-story__actions {display:flex;flex-direction:column;gap:1rem;margin:1rem 0;}
.q24-theme-story__actions:empty {display:none;}
.q24-theme-story__actions a {font-size:.88rem;text-underline-offset:.25em;}
.q24-theme-story__inline,.q24-theme-story__visual {
 box-sizing:border-box;min-width:0;padding:1rem;border:1px solid transparent;border-radius:var(--ui-radius);
 background:linear-gradient(var(--color-surface),var(--color-surface)) padding-box,var(--ui-card-outline) border-box;
 box-shadow:var(--ui-shadow);
}
.q24-theme-story__inline:empty {display:none;}
.q24-theme-story__visual {display:none;}
.q24-theme-story__visual-title {font:600 1rem/1.4 var(--font-sans);margin:0 0 .5rem;}
.q24-theme-story__compare-button {font:inherit;min-height:44px;padding:.5rem .75rem;background:var(--color-accent-soft);border:1px solid var(--color-rule-strong);color:var(--color-ink);border-radius:.5rem;cursor:pointer;}
.q24-theme-story__compare-prompt {font-size:.85rem;line-height:1.5;}
.q24-theme-story__alias {position:absolute;top:0;scroll-margin-top:var(--single-page-anchor-offset);}
.q24-theme-story .analysis-view__inspect {text-decoration-color:var(--color-rule-strong);}
.q24-theme-story .q24-theme-story__highlight {border-left:3px solid var(--color-accent);padding-left:.65rem;}
@media(min-width:1008px) and (min-height:700px){
 .q24-theme-story__layout {display:grid;grid-template-columns:minmax(13rem,.72fr) minmax(0,1.28fr);gap:clamp(1.25rem,3vw,2.5rem);align-items:start;}
 .q24-theme-story__step {min-height:58vh;box-sizing:border-box;padding:1.5rem 0 3rem;border-bottom:1px solid var(--color-rule);}
 .q24-theme-story__step:last-child {min-height:58vh;border-bottom:0;}
 html.site-shell .q24-theme-story__visual {display:block;position:sticky;top:var(--single-page-anchor-offset);max-height:calc(100dvh - var(--single-page-anchor-offset) - 1rem);overflow:auto;overscroll-behavior:contain;}
 .q24-theme-story__inline {display:none;}
 .q24-theme-story__step.is-active .q24-theme-story__number {text-decoration:underline;text-underline-offset:.3em;}
 .q24-theme-story__visual .analysis-view__statement h3 {font-size:.82rem;line-height:1.35;}
 .q24-theme-story__visual .analysis-view__statement {padding-block:.6rem;}
}
@media(max-width:1007px),(max-height:699px){
 .q24-theme-story__step {min-height:0;margin-bottom:1rem;}
 .q24-theme-story__steps {gap:0 .75rem;margin:.55rem 0 .65rem;}
 .q24-theme-story__steps a {min-height:32px;display:flex;align-items:center;padding:0;}
 .q24-theme-story__copy {font-size:.9rem;}
 #results-use-step-overview {padding-top:.4rem;}
 #results-use-step-overview h3 {margin:.3rem 0 .4rem;}
 #results-use-step-overview :is(.q24-theme-story__number,.q24-theme-story__copy) {margin:0 0 .45rem;}
 #results-use-step-overview .q24-theme-story__copy {line-height:1.45;}
 #results-use-step-overview .q24-theme-story__inline {padding:.65rem;}
 #results-use-step-overview .analysis-view__legend {margin:.25rem 0 .35rem;gap:.1rem .55rem;}
 #results-use-step-overview .analysis-view__note {margin:.3rem 0;}
}
@media print {
 .q24-theme-story__layout {display:block;}.q24-theme-story__visual {display:none!important;}.q24-theme-story__inline {display:block;box-shadow:none;}.q24-theme-story__step {min-height:0;break-inside:avoid;}
}

.q24-theme-story__visual:focus-visible {outline:3px solid var(--color-focus);outline-offset:3px;}
@media(min-width:1008px) and (min-height:700px) {
 .q24-theme-story__plot:not([data-phase=groups], [data-phase=summary][data-comparing]) .analysis-view__line--population .analysis-view__label {display:none;}
 .q24-theme-story__plot:not([data-phase=groups], [data-phase=summary][data-comparing]) .analysis-view__line--population svg {grid-row:1;}
}

.q24-theme-story__group-choices {
 display:block;border:0;background:none;padding:.35rem 0;margin:.1rem 0 .4rem;color:var(--color-accent);
 font:inherit;font-size:.8rem;text-align:start;text-decoration:underline;text-underline-offset:.18em;cursor:pointer;
}
.q24-theme-story__statement-groups > summary {
 padding:.35rem 0;color:var(--color-accent);font-size:.76rem;cursor:pointer;
}
.q24-theme-story :is(.q24-theme-story__group-choices,.q24-theme-story__statement-groups > summary):focus-visible {
 outline:2px solid var(--color-focus);outline-offset:2px;
}
@media (max-width:719px) {
 .q24-theme-story [data-phase=summary][data-comparing] [data-distribution=percent] .analysis-view__line--population {
  margin-inline-start:.4rem;
 }
}

html.site-shell .q24-theme-story[data-inline] .q24-theme-story__layout {display:block;}
html.site-shell .q24-theme-story[data-inline] .q24-theme-story__visual {display:none;}
.q24-theme-story[data-inline] .q24-theme-story__inline {display:block;}
.q24-theme-story[data-inline] .q24-theme-story__step {min-height:0;padding-block:1rem;}
.q24-theme-story__finding:empty {display:none;}
.story-comparison__item {margin-block:1rem;}
.story-comparison__item h4 {margin:0;}
.story-comparison__points {list-style:none;margin:0;padding:0;}
.story-comparison__points li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem .55rem;padding:.35rem 0;border-bottom:1px solid var(--color-rule);font-size:.85rem;}
.story-comparison__points li > :nth-child(2) {font-variant-numeric:tabular-nums;text-align:end;}
.story-comparison__track {grid-column:1/-1;display:block;height:2px;background:var(--color-rule);position:relative;margin:.2rem .45rem;}
.story-comparison__track > i {position:absolute;width:.55rem;height:.55rem;border-radius:50%;background:var(--color-accent);translate:-50% -40%;}
.story-comparison__item button,.story-comparison__exact button {min-height:44px;}
.story-comparison__points,.story-comparison__axis {max-width:44rem;}
.story-comparison__item button {padding:.3rem .7rem;border:1px solid var(--color-rule-strong);border-radius:.35rem;background:var(--color-surface);color:var(--color-accent);font:600 .85rem/1.2 var(--font-sans);cursor:pointer;}
.story-comparison__item button:hover {background:var(--color-accent-soft);}
