.worked-example h1 {
    max-width: 24ch;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.08;
}

.example-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.example-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--phosphor-soft);
    border-radius: 6px;
    padding: 12px 18px;
    color: var(--text);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.example-actions .primary {
    background: rgba(95, 255, 135, 0.12);
}

.example-actions .button:focus-visible {
    outline: 2px solid var(--phosphor-soft);
    outline-offset: 4px;
}

.example-sections {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.worked-example .reading-panel p + p {
    margin-top: 12px;
}

.worked-example ol {
    margin: 0;
    padding-left: 22px;
}

.worked-example li + li {
    margin-top: 10px;
}

.worked-example a:not(.button) {
    overflow-wrap: anywhere;
}

.example-fixture {
    margin: 0;
    max-width: 100%;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--phosphor-soft);
    font-size: 0.85rem;
    line-height: 1.65;
}

@media (max-width: 480px) {
    .example-actions .button { flex: 1 1 100%; }
}
