.pfx-references,
.pfx-reference-detail {
    --pfx-red: #ed0016;
    --pfx-black: #111111;
    --pfx-dark: #202020;
    --pfx-gray: #f3f3f3;
    --pfx-white: #ffffff;
    color: var(--pfx-dark);
    background: var(--pfx-white);
}

.pfx-references__container {
    width: min(100% - 2rem, 1280px);
    margin-inline: auto;
}

.pfx-references__header {
    padding-block: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 4rem);
}

.pfx-references__eyebrow,
.pfx-reference-card__category {
    margin: 0 0 1rem;
    color: var(--pfx-red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pfx-references__header h1,
.pfx-reference-detail__header h1 {
    max-width: 17ch;
    margin: 0 0 1.5rem;
    color: var(--pfx-black);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
}

.pfx-references__header > p:last-child,
.pfx-reference-detail__header > p {
    max-width: 60ch;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.pfx-references__filters {
    display: grid;
    gap: 1rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid #d8d8d8;
}

.pfx-references__filters label span {
    display: block;
    margin-bottom: .35rem;
    font-size: .8rem;
    font-weight: 700;
}

.pfx-references__filters input,
.pfx-references__filters select {
    width: 100%;
    min-height: 44px;
    padding: .6rem .8rem;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: var(--pfx-white);
}

.pfx-references__filters button,
body .pfx-reference-detail__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.2rem;
    border: 1px solid var(--pfx-black);
    border-radius: 0;
    background: var(--pfx-black);
    color: var(--pfx-white) !important;
    font: inherit;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.pfx-references__filters button:hover,
body .pfx-reference-detail__button:hover {
    border-color: var(--pfx-red);
    background: var(--pfx-red);
    color: var(--pfx-white) !important;
}

.pfx-references__grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 3rem;
}

.pfx-reference-card {
    border: 1px solid #e0e0e0;
    background: var(--pfx-white);
}

.pfx-reference-card__link {
    display: block;
    height: 100%;
    color: var(--pfx-black);
    text-decoration: none;
}

.pfx-reference-card__image {
    aspect-ratio: 4 / 3;
    background: var(--pfx-gray);
}

.pfx-reference-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfx-reference-card__body { padding: 1.5rem; }
.pfx-reference-card__body h2 { margin: 0 0 .5rem; font-size: 1.45rem; line-height: 1.2; }
.pfx-reference-card__body p { margin-bottom: .5rem; }
.pfx-reference-card__status { display: inline-block; margin-top: .6rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.pfx-references__pagination { display: flex; gap: 1rem; padding-bottom: 5rem; }
.pfx-references__empty { padding: 3rem 0 6rem; }

.pfx-reference-detail { padding-block: clamp(2rem, 5vw, 5rem) 6rem; }
.pfx-reference-detail__header { padding-block: 2rem 3rem; }
.pfx-reference-detail__layout { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.pfx-reference-detail__featured,
.pfx-reference-detail__gallery figure { margin: 0; background: var(--pfx-gray); }
.pfx-reference-detail__featured img,
.pfx-reference-detail__gallery img { display: block; width: 100%; height: auto; }
.pfx-reference-detail__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.pfx-reference-detail__customer { color: var(--pfx-red); font-weight: 800; }
.pfx-reference-detail__description { margin-block: 1.5rem 2.5rem; line-height: 1.7; }
.pfx-reference-detail__facts { margin: 0 0 2.5rem; border-top: 1px solid #d8d8d8; }
.pfx-reference-detail__facts div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #d8d8d8; }
.pfx-reference-detail__facts dt { font-weight: 700; }
.pfx-reference-detail__facts dd { margin: 0; }
.pfx-reference-detail__products h2 { margin-block: 0 1.5rem; font-size: 1.5rem; }
.pfx-reference-detail__product { display: grid; gap: 1rem; padding-block: 1rem; border-top: 1px solid #d8d8d8; }

@media (min-width: 700px) {
    .pfx-references__container { width: min(100% - 4rem, 1280px); }
    .pfx-references__filters { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); align-items: end; }
    .pfx-references__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1050px) {
    .pfx-references__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pfx-reference-detail__layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
