

:root {
    --wfs-pieces-hero-bg: #ECEDEE;
    --wfs-pieces-card-bg: #FFFFFF;
    --wfs-pieces-thead-bg: #F2F3FB;
    --wfs-pieces-accent: #0a5aaf;
    --wfs-pieces-ink-soft: #59616d;
}




.wfs-pieces-hero {
    background: var(--wfs-pieces-hero-bg);
    border-bottom: 1px solid var(--wfs-border);
}

.wfs-pieces-hero__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px 64px;
    text-align: center;
}

.wfs-pieces-hero__title {
    margin: 0 0 28px;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--wfs-dark);
}

.wfs-pieces-hero__eyebrow {
    margin: 0 0 12px;
    color: var(--wfs-pieces-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wfs-pieces-hero__ref {
    font-weight: 600;
    color: var(--wfs-text);
}

.wfs-pieces-search {
    display: flex;
    align-items: stretch;
    gap: 12px;
    max-width: 710px;
    margin: 0 auto;
}

.wfs-pieces-search__box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0 18px;
    background: var(--wfs-white);
    border: 1px solid var(--wfs-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(27, 28, 28, 0.06);
}

.wfs-pieces-search__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #9aa0aa;
}

.wfs-pieces-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    color: var(--wfs-dark);
    padding: 16px 0;
}

.wfs-pieces-search__input:focus {
    outline: none;
}

.wfs-pieces-search__input::-webkit-search-cancel-button {
    cursor: pointer;
}

.wfs-pieces-search__submit {
    flex-shrink: 0;
    appearance: none;
    min-height: 52px;
    border: 1px solid var(--wfs-primary);
    border-radius: 10px;
    background: var(--wfs-primary);
    color: var(--wfs-white);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 26px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.wfs-pieces-search__submit:hover {
    background: #08488c;
}

.wfs-pieces-search__submit:focus-visible {
    outline: 2px solid var(--wfs-white);
    outline-offset: -4px;
}

.wfs-pieces-search__box:focus-within {
    border-color: var(--wfs-primary);
    box-shadow: 0 0 0 3px rgba(10, 90, 175, 0.12);
}


.wfs-pieces-results {
    max-width: 1152px;
    margin: 0 auto;
    padding: 56px 32px 72px;
}

.wfs-piece-detail {
    max-width: 1152px;
    margin: 0 auto;
    padding: 64px 32px 88px;
}

.wfs-piece-detail__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
    padding: 48px;
    border: 1px solid var(--wfs-border);
    border-radius: 16px;
    background: var(--wfs-pieces-card-bg);
    box-shadow: 0 18px 45px rgba(27, 28, 28, 0.08);
}

.wfs-piece-detail__label {
    margin: 0 0 12px;
    color: var(--wfs-pieces-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wfs-piece-detail__name {
    max-width: 680px;
    margin: 0;
    color: var(--wfs-dark);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.wfs-piece-detail__reference {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 10px 14px;
    border: 1px solid #d6e2ef;
    border-radius: 6px;
    background: #f4f8fc;
    color: var(--wfs-pieces-ink-soft);
    font-size: 0.82rem;
}

.wfs-piece-detail__reference strong {
    color: var(--wfs-dark);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.wfs-piece-detail__description {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--wfs-pieces-ink-soft);
    line-height: 1.7;
}

.wfs-piece-detail__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.wfs-piece-detail__quote,
.wfs-piece-detail__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wfs-piece-detail__quote {
    background: var(--wfs-pieces-accent);
    color: #fff;
}

.wfs-piece-detail__quote:hover {
    background: #08488c;
    color: #fff;
}

.wfs-piece-detail__back {
    border: 1px solid var(--wfs-border);
    color: var(--wfs-dark);
}

.wfs-piece-detail__back:hover {
    border-color: var(--wfs-pieces-accent);
    color: var(--wfs-pieces-accent);
}

.wfs-piece-detail__not-found {
    padding: 48px;
    border: 1px solid var(--wfs-border);
    border-radius: 16px;
    background: var(--wfs-pieces-card-bg);
}

.wfs-piece-detail__not-found h2 {
    margin: 0 0 12px;
    color: var(--wfs-dark);
}

.wfs-piece-detail__not-found p {
    margin: 0 0 24px;
    color: var(--wfs-pieces-ink-soft);
}

.wfs-pieces-results__title {
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wfs-border);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--wfs-primary);
}

.wfs-pieces-results__count {

    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wfs-pieces-table-wrap {
    margin-top: 24px;
    background: var(--wfs-pieces-card-bg);
    border: 1px solid var(--wfs-border);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wfs-pieces-table-wrap:focus-visible {
    outline: 2px solid var(--wfs-primary);
    outline-offset: -2px;
}

.wfs-pieces-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.wfs-pieces-table thead th {
    background: var(--wfs-pieces-thead-bg);
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 14px 24px;
    white-space: nowrap;
}

.wfs-pieces-table__row td {
    padding: 16px 24px;
    color: var(--wfs-text);
    border-bottom: 1px solid var(--wfs-border);
    vertical-align: top;
}

.wfs-pieces-table__row:last-child td {
    border-bottom: none;
}

.wfs-pieces-table__ref {
    font-weight: 700;
    color: var(--wfs-dark);
    min-width: 160px;
}

.wfs-pieces-table .wfs-pieces-table__ref a,
.wfs-pieces-table .wfs-pieces-table__ref a:visited,
.wfs-pieces-table .wfs-pieces-table__ref a:hover,
.wfs-pieces-table .wfs-pieces-table__ref a:active {
    color: var(--wfs-text) !important;
    text-decoration: none !important;
}

.wfs-pieces-table__ref a:focus-visible {
    outline: 2px solid var(--wfs-pieces-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.wfs-pieces-table__empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--wfs-text);
    font-style: italic;
}


@media (max-width: 1024px) {
    .wfs-pieces-hero__inner {
        padding: 48px 24px 56px;
    }

    .wfs-pieces-results {
        padding: 48px 24px 56px;
    }

    .wfs-piece-detail {
        padding: 48px 24px 64px;
    }
}

@media (max-width: 768px) {
    .wfs-pieces-hero__inner {
        padding: 40px 16px 44px;
    }

    .wfs-pieces-hero__title {
        font-size: 1.9rem;
    }

    .wfs-pieces-search {
        flex-direction: column;
        gap: 14px;
    }

    .wfs-pieces-search__box {
        padding: 12px 16px;
    }

    .wfs-pieces-search__submit {
        width: 100%;
        padding: 14px 16px;
    }

    .wfs-pieces-results {
        padding: 40px 16px 48px;
    }

    .wfs-piece-detail {
        padding: 40px 16px 56px;
    }

    .wfs-piece-detail__card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .wfs-pieces-hero__title {
        font-size: 1.5rem;
    }

    .wfs-piece-detail__card,
    .wfs-piece-detail__not-found {
        padding: 24px 18px;
    }

    .wfs-piece-detail__reference {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .wfs-pieces-table thead th,
    .wfs-pieces-table__row td {
        padding: 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wfs-pieces-search__submit {
        transition: none;
    }

    .wfs-piece-detail__quote,
    .wfs-piece-detail__back {
        transition: none;
    }
}