/* Data-report pages (/research/*). Chart markup comes from components/report_charts.php, behavior from scripts/report.js. */

/* --- a. Layout & Type ---------- */
.report {
    color: #2E3A5C;
}

.report :where(h2, h3, h4, h5) {
    color: #112867;
}

.report [id] {
    scroll-margin-top: 90px;
}

.report [hidden] {
    display: none;
}

.report-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-stack.small-gap {
    gap: 12px;
}

.report-stack.large-gap {
    gap: 40px;
}

.report-stack > :is(h2, h3, h4, h5, p, ul, ol) {
    margin: 0;
    padding: 0;
}

/* Main column + sidebar that wraps under it when narrow */
.report-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

.report-split > :first-child {
    flex: 999 1 560px;
    min-width: 0;
}

.report-split > :last-child {
    flex: 1 1 320px;
}

.report-split.center {
    align-items: center;
}

.report-sticky {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.report-eyebrow {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4155FF;
}

#intro .report-eyebrow {
    color: #5C77A7;
}

.report-author img {
    display: block;
    width: 100%;
    height: auto;
}

.report-display,
.report-headline,
.report-subhead {
    font-weight: 800;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.report-display {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.12;
}

.report-headline {
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.15;
}

.report-subhead {
    font-size: clamp(22px, 2.8vw, 34px);
    line-height: 1.2;
}

.report-lede {
    font-size: 17px;
    line-height: 1.7;
    text-wrap: pretty;
}

.report-statement {
    color: #112867;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.report-muted {
    color: #4A5578;
    font-size: 13px;
    line-height: 1.5;
}

/* --- b. Chapters ---------- */
.chapter-mist {
    --chapter-color: #4155FF;
    --chapter-tint: #EEF0FF;
    --chapter-ink: #2A37B8;
    --chapter-on-color: #FFF;
}

.chapter-grape {
    --chapter-color: #6D4EC4;
    --chapter-tint: #F2EEFC;
    --chapter-ink: #5A3DAE;
    --chapter-on-color: #FFF;
}

.chapter-seaglass {
    --chapter-color: #23DDCD;
    --chapter-tint: #E4FAF7;
    --chapter-ink: #0B5E57;
    --chapter-on-color: #112867;
}

.chapter-marigold {
    --chapter-color: #FFCF58;
    --chapter-tint: #FFF7E0;
    --chapter-ink: #7A5500;
    --chapter-on-color: #112867;
}

.chapter-tangerine {
    --chapter-color: #FF994B;
    --chapter-tint: #FFF0E4;
    --chapter-ink: #8A3D00;
    --chapter-on-color: #112867;
}

.chapter-coral {
    --chapter-color: #FF5868;
    --chapter-tint: #FFECEE;
    --chapter-ink: #8A1424;
    --chapter-on-color: #112867;
}

.chapter-blueberry {
    --chapter-color: #5C77A7;
    --chapter-tint: #E8ECF6;
    --chapter-ink: #112867;
    --chapter-on-color: #FFF;
}

.chapter-forest {
    --chapter-color: #00704B;
    --chapter-tint: #CDF2E4;
    --chapter-ink: #00704B;
    --chapter-on-color: #FFF;
}

.chapter-blueberry-lighter {
    --chapter-color: #94BBFF;
    --chapter-tint: #E2EEFB;
    --chapter-ink: #33477F;
    --chapter-on-color: #112867;
}

.chapter-grey {
    --chapter-color: #4B5A68;
    --chapter-tint: #F3F4F7;
    --chapter-ink: #4B5A68;
    --chapter-on-color: #FFF;
}

.chapter-coral-light {
    --chapter-color: #FFBCC3;
    --chapter-tint: #FFDEE1;
    --chapter-ink: #C1152A;
    --chapter-on-color: #112867;
}

.report-chapter {
    border-top: 6px solid var(--chapter-color, #4155FF);
}

.report-chapter-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: clamp(24px, 4vw, 44px);
    background: var(--chapter-tint, #EEF0FF);
    border-radius: 28px;
}

.report-chapter-header > .report-stack,
.report-subchapter-header > .report-stack {
    flex: 999 1 420px;
    min-width: 0;
}

.report-chapter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--chapter-ink, #2A37B8);
}

.report-chapter-number {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--chapter-on-color, #FFF);
    background: var(--chapter-color, #4155FF);
}

.report-subchapter-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--chapter-color, #4155FF);
}

.report-illustration {
    flex: 0 0 240px;
    width: 240px;
    max-width: 100%;
    border-radius: 20px;
}

.report-illustration.medium {
    flex-basis: 220px;
    width: 220px;
}

.report-illustration.small {
    flex-basis: 160px;
    width: 160px;
    border-radius: 16px;
}

/* --- c. Cards & Callouts ---------- */
.report-card {
    padding: 28px;
    background: #FFF;
    border: 1px solid #E3E7F0;
    border-radius: 24px;
}

.report-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.report-card-title.large {
    font-size: 20px;
}

.report-card figcaption {
    color: #4A5578;
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
}

.report-callout {
    padding: 28px;
    background: #F5F7FB;
    border-radius: 24px;
}

.report-callout.coral {
    background: #FFF4F5;
}

.report-callout.coral .report-card-title {
    color: #8A1424;
}

.report-callout.tangerine {
    background: #FFF0E4;
}

.report-callout .report-eyebrow {
    font-size: 12px;
}

.report-callout li,
.report-card li {
    margin-left: 18px;
}

.report-callout li + li,
.report-card li + li {
    margin-top: 10px;
}

.report-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-icon-title img {
    flex: none;
    width: 20px;
    height: 20px;
}

/* "What this means" line inside a finding */
.report-implication {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #112867;
    font-size: 15px;
    line-height: 1.5;
}

.report-implication img {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.report-findings {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
}

.report-finding {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 28px;
}

.report-finding > .report-stack {
    flex: 999 1 420px;
    min-width: 0;
}

.report-finding > .button {
    flex: none;
}

/* Blueberry arrow would vanish on the filled hover state */
.report-finding > .button:hover .arrow {
    filter: brightness(0) invert(1);
}

.report-media-card {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 0;
}

.report-media-card > picture {
    flex: 1 1 260px;
}

.report-media-card > picture img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.report-media-card > .report-stack {
    flex: 999 1 340px;
    padding: 28px;
}

.report-stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.report-stat-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #F5F7FB;
    border-radius: 16px;
    color: #4A5578;
    font-size: 13px;
}

.report-stat-tile strong {
    font-weight: 700;
}

.report-stat-tile-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #112867;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

/* Fraction graphic, e.g. Click rate = clicks / delivered */
.report-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    color: #112867;
    font-weight: 800;
    background: #FFF;
    border: 1px solid #E3E7F0;
    border-radius: 18px;
}

.report-formula-term {
    font-size: 22px;
    white-space: nowrap;
}

.report-formula-operator {
    font-size: 30px;
}

.report-formula-fraction {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-formula-fraction > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 15px;
    white-space: nowrap;
    background: #EEF0F5;
    border-radius: 12px;
}

.report-formula-fraction > span:first-child {
    color: #2A37B8;
    background: #E3E6FF;
}

.report-formula-fraction > span img {
    width: 16px;
    height: 16px;
}

.report-formula-fraction > hr {
    height: 3px;
    background: #112867;
    border-radius: 2px;
}

/* --- d. Chart Parts ---------- */
.report-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    line-height: 1.4;
}

.report-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.report-swatch {
    flex: none;
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.report-swatch.dot {
    border-radius: 50%;
}

.report-swatch.muted {
    background: #8A94B0;
}

.report-swatch.median {
    width: 0;
    height: 16px;
    border-left: 2px dashed #112867;
    border-radius: 0;
}

.report-swatch.median.horizontal {
    width: 18px;
    height: 0;
    border-left: 0;
    border-top: 2px dashed #112867;
}

.report-swatch.interval {
    width: 20px;
    height: 13px;
    background: linear-gradient(#A9B3FF 0 5px, transparent 5px 8px, #D5DAE6 8px);
}

.report-tier-scale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px 6px;
}

.report-tier-scale > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #4A5578;
    font-size: 13px;
}

.report-tier-scale .report-tier-bar {
    height: 16px;
    border-radius: 8px;
}

.report-tier-scale strong {
    color: #112867;
    font-size: 16px;
    font-weight: 800;
}

.report-tier-scale .report-tier-range {
    color: #2E3A5C;
    font-size: 15px;
    font-weight: 600;
}

.report-tier-scale.emphasis .report-tier-range {
    color: #112867;
    font-size: 22px;
    font-weight: 800;
}

.report-toggle-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 8px;
}

.report-toggle-group .button {
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    font-size: 14px;
}

/* Horizontal bars: label | track | value | share, one grid so columns line up across rows */
.report-bar-chart {
    display: grid;
    grid-template-columns: minmax(80px, var(--report-label-width, 210px)) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px 14px;
    color: #112867;
    font-size: 14px;
}

.report-bar-chart.no-share {
    grid-template-columns: minmax(80px, var(--report-label-width, 210px)) minmax(0, 1fr) auto;
}

.report-bar-head {
    color: #4A5578;
    font-size: 12px;
    font-weight: 700;
}

.report-bar-label {
    font-weight: 600;
    line-height: 1.3;
}

.report-bar-group {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 2px solid #E3E7F0;
    color: #4155FF;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.report-bar-track {
    position: relative;
    height: 24px;
    background: #F0F2F7;
    border-radius: 6px;
}

.report-bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 6px;
}

.report-bar-median {
    position: absolute;
    top: -6px;
    bottom: -6px;
    border-left: 2px dashed #112867;
}

.report-bar-value {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    font-size: 16px;
    font-weight: 800;
    text-align: right;
}

.report-bar-share {
    color: #4A5578;
    font-size: 13px;
    text-align: right;
}

.report-bar-head:nth-child(n + 3) {
    text-align: right;
}

.report-bar-scale {
    display: flex;
    justify-content: space-between;
}

/* Two header labels sitting directly over a pair of value pills (Elite / Good+) */
.report-bar-pair {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.report-bar-pair > span,
.report-bar-value .pill {
    width: 56px;
    text-align: center;
}

.report-bar-value .pill {
    padding-left: 0;
    padding-right: 0;
}

/* Same-sender difference with its 95% confidence interval; lives in a .report-bar-chart.no-share grid */
.report-ci-track {
    position: relative;
    height: 30px;
}

.report-ci-track::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: #EEF0F5;
}

.report-ci-zero {
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: 2px;
    background: #8A94B0;
}

.report-ci-band {
    position: absolute;
    top: 12px;
    height: 6px;
    background: #D5DAE6;
    border-radius: 3px;
}

.report-ci-point {
    position: absolute;
    top: 8px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: #8A94B0;
    border: 2px solid #FFF;
    border-radius: 50%;
}

.report-ci-track.holds .report-ci-band {
    background: #A9B3FF;
}

.report-ci-track.holds .report-ci-point {
    background: #4155FF;
}

.report-ci-axis {
    position: relative;
    height: 16px;
    color: #4A5578;
    font-size: 12px;
}

.report-ci-axis > span {
    position: absolute;
    top: 0;
}

.report-ci-axis > span:nth-child(2) {
    transform: translateX(-50%);
}

.report-ci-axis > span:last-child {
    right: 0;
}

/* Vertical columns: a plot row and a label row with matching column grids */
.report-column-plot,
.report-column-labels {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    column-gap: 8px;
    color: #112867;
}

.report-column-plot {
    position: relative;
    height: 260px;
}

.report-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
}

.report-column > div {
    width: 100%;
    max-width: 56px;
    border-radius: 8px 8px 0 0;
}

.report-column-reference {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px dashed #112867;
    pointer-events: none;
}

.report-column-labels {
    border-top: 1px solid #DDE3F0;
}

.report-column-labels > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 700;
}

.report-column-labels > div > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.report-histogram {
    padding-left: 62px;
    color: #4A5578;
    font-size: 12px;
}

.report-histogram-title {
    display: block;
    width: 52px;
    margin-left: -62px;
    padding-bottom: 8px;
    font-weight: 700;
    text-align: right;
}

.report-histogram-plot {
    position: relative;
    height: 300px;
    border-left: 1px solid #C9D2E6;
    border-bottom: 2px solid #112867;
}

.report-histogram-gridline {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #EEF0F5;
}

.report-histogram-gridline > span {
    position: absolute;
    right: calc(100% + 10px);
    transform: translateY(-50%);
}

.report-histogram-bars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
}

.report-histogram-bars > div {
    flex: 1 1 0;
    min-width: 0;
    border-right: 1px solid #FFF;
    border-radius: 2px 2px 0 0;
}

.report-histogram-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 2px dashed #112867;
}

.report-histogram-marker > span {
    position: absolute;
    left: 6px;
    padding: 2px 6px;
    color: #112867;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(255, 255, 255, .92);
    border-radius: 6px;
}

.report-histogram-axis {
    position: relative;
    height: 24px;
}

.report-histogram-axis > span {
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
}

.report-histogram-axis + p {
    margin: 0;
    font-weight: 700;
    text-align: center;
}

/* --- e. Data Tables & Disclosures ---------- */
table.report-table {
    color: #112867;
    border-radius: 0;
}

/* Only wide tables scroll; narrower ones wrap to fit */
table.report-table:has(thead th:nth-child(5)) {
    min-width: 560px;
}

/* Scrollbar only appears when the table actually overflows */
.report .tableContainer {
    container-type: inline-size;
    overflow-x: auto;
    scrollbar-width: thin;
}

.report .tableContainer::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.report .tableContainer::-webkit-scrollbar-thumb {
    background: #C9D2E6;
    border-radius: 3px;
}

table.report-table tr th,
table.report-table tr td {
    padding: 10px 14px;
    font-size: 14px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid #EEF0F5;
    border-bottom: 0;
}

table.report-table thead tr th {
    color: #4A5578;
    font-size: 13px;
    font-weight: 700;
    background: #F5F7FB;
    border-top: 0;
}

table.report-table tbody th {
    font-weight: 600;
}

table.report-table tbody tr:nth-child(odd) {
    background: none;
}

/* Stays in view and wraps to the visible width while a wide table scrolls */
table.report-table caption {
    position: sticky;
    left: 0;
    max-width: 100cqw;
    caption-side: bottom;
    padding: 12px 14px;
    color: #4A5578;
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
    text-align: left;
}

.report-disclosure > summary,
.report-accordion > summary {
    cursor: pointer;
    list-style: none;
}

.report-disclosure > summary::-webkit-details-marker,
.report-accordion > summary::-webkit-details-marker {
    display: none;
}

.report-disclosure > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: #4155FF;
    font-size: 15px;
    font-weight: 700;
}

.report-disclosure > summary::after,
.report-accordion > summary::after {
    content: '+';
}

.report-disclosure[open] > summary::after,
.report-accordion[open] > summary::after {
    content: '\2212';
}

.report-accordion {
    border-bottom: 1px solid #EEF0F5;
}

.report-accordion:last-child {
    border-bottom: 0;
}

.report-accordion.boxed {
    padding: 4px 28px;
    border: 1px solid #E3E7F0;
    border-radius: 20px;
}

.report-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
}

.report-accordion > summary::after {
    color: #4155FF;
    font-size: 22px;
}

.report-accordion > summary h3 {
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: normal;
}

.report-accordion > .report-stack {
    padding-bottom: 18px;
    font-size: 15px;
    line-height: 1.75;
}

.report-card.accordion-list {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* --- f. Chapter Nav ---------- */
/* Floating button that names the current chapter and opens an "On this page" menu (native popover: Esc and outside click close it) */
.report-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    z-index: 40;
    transform: translateX(-50%);
    transition: opacity .2s ease, visibility .2s;
}

.report-nav.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.report-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 20px 8px 10px;
    color: #FFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    background: #112867;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(17, 40, 103, .35);
    cursor: pointer;
    transition: transform .15s ease;
}

.report-nav-toggle:hover {
    transform: translateY(-2px);
}

.report-nav-toggle:focus-visible {
    outline: 3px solid #23DDCD;
    outline-offset: 3px;
}

.report-toggle-group .button:focus-visible,
.report-disclosure > summary:focus-visible,
.report-nav-menu a:focus-visible {
    outline: 2px solid #4155FF;
    outline-offset: 2px;
}

.report-nav-count {
    color: #B6CFEF;
    font-size: 13px;
    font-weight: 500;
}

.report-nav-chevron {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.report-nav:has(.report-nav-menu:popover-open) .report-nav-chevron {
    transform: rotate(180deg);
}

.report-nav-menu {
    position: fixed;
    inset: auto auto 88px 50%;
    width: min(560px, calc(100% - 24px));
    max-height: calc(100% - 120px);
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    color: #112867;
    background: #FFF;
    border: 1px solid #E3E7F0;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 40, 103, .25);
    transform: translateX(-50%);
}

.report-nav-menu:popover-open {
    animation: report-nav-menu-in .18s ease-out;
}

@keyframes report-nav-menu-in {
    from {
        opacity: 0;
        transform: translate(-50%, 8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .report-nav-toggle,
    .report-nav-menu:popover-open {
        transition: none;
        animation: none;
    }
}

.report-nav-menu::backdrop {
    background: rgba(17, 40, 103, .18);
}

.report-nav-menu .report-eyebrow {
    margin: 4px 8px 12px;
}

/* Numbered top to bottom, then into the second column */
.report-nav-menu ol {
    columns: 2;
    column-gap: 4px;
    list-style: none;
}

.report-nav-menu li {
    margin: 0;
    break-inside: avoid;
}

.report-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px 12px 6px 8px;
    color: #112867;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
}

.report-nav-menu a:hover {
    filter: none;
    background: #F5F7FB;
}

.report-nav-menu a[aria-current] {
    background: var(--chapter-tint, #F5F7FB);
}

/* Neutral until active, then the chapter's own color */
.report-nav .report-chapter-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
    color: #FFF;
    background: rgba(255, 255, 255, .16);
}

.report-nav .report-chapter-number img {
    width: 12px;
    height: 12px;
}

.report-nav-menu .report-chapter-number {
    color: #112867;
    background: #EEF0F5;
}

.report-nav-toggle[class*="chapter-"] .report-chapter-number,
.report-nav-menu a[aria-current] .report-chapter-number {
    color: var(--chapter-on-color, #FFF);
    background: var(--chapter-color, #112867);
}

#hero .text-card p.report-byline {
    padding-bottom: 0;
    color: #B6CFEF;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .report-sticky {
        position: static;
    }

    .report-author {
        max-width: 200px;
        margin: 0 auto;
        text-align: center;
    }

    .report .stat-columns .column {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .report-display,
    .report-subhead,
    .report-chapter-header,
    .report-subchapter-header {
        text-align: center;
    }

    .report-chapter-header .report-lede,
    .report-subchapter-header + .report-lede,
    .report-subchapter-header + .report-split .report-lede,
    .report-subhead + .report-lede {
        text-align: center;
    }

    .report-chapter-label {
        flex-direction: column;
        gap: 10px;
    }

    .report-chapter-header > .report-illustration,
    .report-subchapter-header > .report-illustration,
    .report-finding > .report-illustration {
        order: -1;
        margin: 0 auto;
    }

    .report-finding > .report-stack > :not(.report-implication) {
        text-align: center;
        text-wrap: balance;
    }

    #hero .text-card p.font-20 {
        text-wrap: pretty;
    }

    .report-first-mobile {
        order: -1;
    }

    /* Flattens the splits inside into one column so .report-first-mobile can reorder across them */
    .report-stack.report-reflow {
        gap: 24px;
    }

    .report-reflow > .report-split,
    .report-reflow > .report-split > div {
        display: contents;
    }

    .report-reflow > .report-split > * {
        flex: none;
    }

    .report-stat-tiles {
        grid-template-columns: 1fr;
    }

    .report-stat-tile {
        align-items: center;
        text-align: center;
    }

    table.report-table tr th,
    table.report-table tr td {
        padding: 10px 6px;
        font-size: 13px;
    }

    /* Long header words like "campaigns" would otherwise force a scroll */
    table.report-table thead tr th {
        hyphens: auto;
    }

    .report-card,
    .report-finding,
    .report-callout,
    .report-chapter-header,
    .report-media-card > .report-stack {
        padding: 20px;
    }

    .report-accordion.boxed {
        padding: 4px 20px;
    }

    .report-media-card {
        padding: 0;
    }

    .report-statement {
        font-size: 19px;
    }

    .report-formula {
        flex-wrap: wrap;
    }

    .report-bar-chart {
        grid-template-columns: minmax(0, 1fr) auto auto;
        row-gap: 6px;
    }

    .report-bar-chart.no-share {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .report-bar-label {
        grid-column: 1 / -1;
        margin-top: 8px;
    }

    .report-bar-head:first-child {
        grid-column: 1 / -1;
    }

    .report-bar-value .pill {
        min-width: 0;
        font-size: 12px;
    }

    .report-bar-pair > span,
    .report-bar-value .pill {
        width: 46px;
    }

    .report-column {
        font-size: 12px;
    }

    .report-column-labels > div,
    .report-column-labels > div > span {
        font-size: 11px;
    }

    .report-nav {
        bottom: 12px;
    }

    .report-nav-toggle {
        font-size: 14px;
    }

    .report-nav-menu {
        bottom: 80px;
    }

    .report-nav-menu ol {
        columns: 1;
    }
}

/* Left-align the chapter nav and stop it short of the HubSpot chat bubble in the bottom-right corner */
@media (max-width: 480px) {
    .report-nav {
        left: 12px;
        max-width: calc(100% - 96px);
        transform: none;
    }

    .report-nav-toggle {
        max-width: 100%;
    }

    .report-nav .report-chapter-number,
    .report-nav-chevron {
        flex-shrink: 0;
    }

    .report-nav-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .report-nav-count {
        display: none;
    }
}
