/* ============================================================================
   DogRegistry pedigree design system
   Shared visual language for pedigree headings, controls, surfaces and states.
   Tree geometry and dog-card internals remain isolated in their components.
   ============================================================================ */

:root {
    --pedigree-surface: #fffdf8;
    --pedigree-surface-soft: #faf6ee;
    --pedigree-border: #ddd1bd;
    --pedigree-border-soft: #e7ded1;
    --pedigree-text: #3c281f;
    --pedigree-muted: #82756c;
    --pedigree-gold: #b79343;
    --pedigree-connector: #cba85d;
}

.registry-pedigree-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.registry-generation-selector {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    background: var(--pedigree-surface);
    border: 1px solid var(--pedigree-border);
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(61, 40, 30, 0.04);
}

.registry-generation-button {
    width: 35px;
    height: 34px;
    padding: 0;
    color: #786960;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--pedigree-border-soft);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.registry-generation-button:hover {
    color: var(--club-burgundy, #941328);
    background: #faf2e8;
}

.registry-generation-button.is-active,
.registry-generation-button.generation-button-active {
    color: #fff;
    background: var(--club-burgundy, #941328);
}

.registry-generation-button.is-active:hover,
.registry-generation-button.generation-button-active:hover {
    color: #fff;
    background: var(--club-burgundy-dark, #740d20);
}

.registry-generation-label {
    padding: 0 11px;
    color: #86776d;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.registry-pedigree-tool-button {
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    color: var(--club-burgundy, #941328);
    background: var(--pedigree-surface);
    border: 1px solid #dbcdb9;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease,
                border-color 0.15s ease, box-shadow 0.15s ease;
}

.registry-pedigree-tool-button i {
    color: #b28d41;
}

.registry-pedigree-tool-button:hover {
    color: #fff;
    background: var(--club-burgundy, #941328);
    border-color: var(--club-burgundy, #941328);
    box-shadow: 0 3px 9px rgba(148, 19, 40, 0.14);
}

.registry-pedigree-tool-button:hover i {
    color: var(--club-gold-light, #ead9a3);
}

.registry-pedigree-surface {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e0d6c8;
    border-radius: 11px;
    box-shadow: 0 7px 23px rgba(61, 40, 30, 0.07);
}

.registry-pedigree-scroll {
    scrollbar-color: #cdbda8 #f3ede4;
    scrollbar-width: thin;
}

.registry-pedigree-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.registry-pedigree-scroll::-webkit-scrollbar-track {
    background: #f3ede4;
}

.registry-pedigree-scroll::-webkit-scrollbar-thumb {
    background: #cdbda8;
    border-radius: 10px;
}

.registry-pedigree-scroll::-webkit-scrollbar-thumb:hover {
    background: #b49e82;
}

@media (max-width: 900px) {
    .registry-pedigree-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .registry-pedigree-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .registry-generation-selector {
        width: fit-content;
    }

    .registry-pedigree-tool-button {
        width: 100%;
    }
}
