/* Worked-example diagram on technique articles (_lib/partials/technique-grid.php).
   Swatch colors repeat the TG_COLOR_* constants of the SVG. */

.technique-figure {
    max-width: 480px;
    margin: 2rem auto;
    text-align: center;
}

.technique-grid {
    display: block;
    width: 100%;
    height: auto;
}

.technique-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
}

.article-page .technique-legend li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.technique-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
}

.technique-swatch-pattern {
    background: rgba(61, 123, 224, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.technique-swatch-removed {
    color: #ff5f6d;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.technique-swatch-placed {
    color: #7ee0a0;
}

.technique-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
