/* AP05: MVP component mapped to AP03 roles; outer spacing stays in custom-section. */
.stats_and_trust_section-m6 {
    --plan-blau: var(--brand-blue);
    color: var(--brand-navy);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.stats_and_trust_section-m6 .row:first-child {
    row-gap: var(--layout-gap);
}

.stats_and_trust_section-m6 .trust-title {
    margin: 0;
    color: var(--brand-blue);
    font-family: var(--font-display);
    font-size: var(--text-section);
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.stats_and_trust_section-m6 .trust-title > span {
    display: block;
}

.stats_and_trust_section-m6 .trust-title .trust-eyebrow {
    margin-bottom: var(--space-3);
    font-size: var(--text-eyebrow);
    line-height: 1.5;
}

.stats_and_trust_section-m6 .section-subtitle {
    max-width: var(--lead-measure);
    margin-block: var(--space-5);
    color: var(--brand-navy);
    font-family: var(--font-body);
    font-size: var(--text-lead);
    line-height: 1.65;
}

.stats_and_trust_section-m6 .btn.btn--secondary.ci-plan-blue {
    font-family: var(--font-control);
    font-size: var(--text-control-prominent);
    line-height: 1.5;
    min-block-size: var(--control-min-size);
    padding: var(--space-3) var(--space-5);
    white-space: normal;
    overflow-wrap: anywhere;
    touch-action: manipulation;
    transform: none;
    transition: background-color var(--motion-duration-state) ease,
                color var(--motion-duration-state) ease,
                border-color var(--motion-duration-state) ease;
}

.stats_and_trust_section-m6 .btn > span {
    min-width: 0;
}

.stats_and_trust_section-m6 .btn ion-icon {
    flex-shrink: 0;
}

.stats_and_trust_section-m6 .chart-card,
.stats_and_trust_section-m6 .seal-card {
    min-width: 0;
    height: 100%;
    padding: var(--card-padding);
    border-radius: var(--radius-card);
    background: var(--surface-default);
    box-shadow: var(--shadow-card);
}

.stats_and_trust_section-m6 .chart-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats_and_trust_section-m6 .chart-head {
    width: 100%;
}

.stats_and_trust_section-m6 h3 {
    margin: 0;
    color: var(--brand-blue);
    font-family: var(--font-display);
    font-size: var(--text-card);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.stats_and_trust_section-m6 .chart-head p {
    margin: var(--space-2) 0 0;
    font-size: var(--text-body);
    line-height: 1.65;
}

.stats_and_trust_section-m6 .donut-wrap {
    position: relative;
    container-type: inline-size;
    width: min(15.625rem, 100%);
    aspect-ratio: 1;
    margin-block: var(--space-5);
}

.stats_and_trust_section-m6 .donut {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.stats_and_trust_section-m6 .donut .seg {
    fill: none;
    stroke-width: 22;
    opacity: .3;
}

.stats_and_trust_section-m6 .donut .seg.active {
    opacity: 1;
}

/* Overlay only the percentage; category names remain visible in the legend. */
.stats_and_trust_section-m6 .donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.stats_and_trust_section-m6 .donut-center .big {
    color: var(--brand-blue);
    font-family: var(--font-display);
    font-size: min(var(--text-story), 12cqi);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

/* Keep the selected category in the live status without repeating it visually. */
.stats_and_trust_section-m6 .donut-center .small {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.stats_and_trust_section-m6 .legend {
    display: grid;
    gap: 0;
    width: 100%;
    list-style: none;
    margin: var(--space-5) 0 0;
    padding: 0;
}

.stats_and_trust_section-m6 .legend button {
    display: grid;
    grid-template-columns: .875rem minmax(0, 1fr) auto;
    gap: var(--space-3);
    align-items: center;
    width: 100%;
    min-block-size: var(--control-min-size);
    padding: var(--space-2);
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--brand-navy);
    font-family: var(--font-control);
    font-size: var(--text-control);
    font-weight: 700;
    line-height: 1.5;
    text-align: start;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    /* No transition on data selection: keyboard/touch state is immediate. */
}

.stats_and_trust_section-m6 .legend button[aria-pressed="true"] {
    background: var(--surface-soft);
    color: var(--brand-blue);
    font-weight: 700;
}

.stats_and_trust_section-m6 .legend .dot {
    width: .875rem;
    height: .875rem;
    margin-top: 0;
    border-radius: var(--radius-sm);
}

.stats_and_trust_section-m6 .legend .lbl {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.stats_and_trust_section-m6 .legend .val {
    grid-column: 3;
    text-align: end;
    color: var(--brand-blue);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.stats_and_trust_section-m6 :is(a, button):focus-visible {
    outline: var(--focus-width) solid var(--brand-navy);
    outline-offset: var(--focus-offset);
}

.stats_and_trust_section-m6 .seal-items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--layout-gap);
    min-width: 0;
    margin-top: var(--intro-to-content);
}

.stats_and_trust_section-m6 .seal-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: var(--space-3);
}

.stats_and_trust_section-m6 .seal-logo {
    display: flex;
    align-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--space-3);
}

.stats_and_trust_section-m6 .seal-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stats_and_trust_section-m6 .seal-eyebrow {
    color: var(--brand-blue);
    font-family: var(--font-display);
    font-size: var(--text-eyebrow);
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.stats_and_trust_section-m6 .seal-desc {
    margin: 0;
    max-width: var(--content-measure);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

@media (min-width: 992px) {
    .stats_and_trust_section-m6 .seal-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (hover: hover) and (pointer: fine) {
    .stats_and_trust_section-m6 .legend button:hover {
        background: var(--surface-soft);
        text-decoration: underline;
        text-underline-offset: .2em;
    }
    .stats_and_trust_section-m6 .btn.btn--secondary.ci-plan-blue:hover {
        background: var(--brand-blue-hover);
        border-color: var(--brand-blue-hover);
        transform: none;
    }
}

.stats_and_trust_section-m6 .legend button:active {
    background: var(--surface-soft);
}

.stats_and_trust_section-m6 .btn.btn--secondary.ci-plan-blue:active {
    background: var(--brand-blue-pressed);
    border-color: var(--brand-blue-pressed);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .stats_and_trust_section-m6 .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (forced-colors: active) {
    .stats_and_trust_section-m6 .chart-card,
    .stats_and_trust_section-m6 .seal-card {
        border-color: CanvasText;
        box-shadow: none;
    }
    .stats_and_trust_section-m6 .legend button {
        border-color: ButtonText;
        color: ButtonText;
        background: ButtonFace;
    }
    .stats_and_trust_section-m6 .legend button[aria-pressed="true"] {
        border-color: Highlight;
    }
    .stats_and_trust_section-m6 :is(a, button):focus-visible {
        outline-color: Highlight;
    }
}
