/* Procomp: the actual stocked machines lead; repair tools remain one jump away.
   Keep the existing Inter, slate header, white product surfaces and green links. */
.procomp-home {
    max-width: 1536px;
    margin: 0 auto;
    padding: 24px 0 40px;
}
.procomp-intro { margin: 0 16px; }
.procomp-intro h1 {
    max-width: 1000px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 700;
    text-wrap: balance;
}
.procomp-intro__description {
    max-width: 880px;
    margin-top: 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}
.procomp-intro__search { display: flex; gap: 8px; margin-top: 16px; }
.procomp-intro__search input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: white;
    padding: 10px 12px;
    font-size: 14px;
}
.procomp-intro__search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    color: white;
    background: #15803d;
}
.procomp-builder {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 14px;
    margin-top: 24px;
    min-width: 0;
    min-height: 240px;
    padding: 22px 20px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}
.procomp-builder:hover { border-color: #16a34a; }
.procomp-builder__copy { display: contents; }
.procomp-builder__title {
    grid-column: 1 / -1;
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.procomp-builder__description {
    grid-column: 1;
    align-self: start;
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}
.procomp-builder__action {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 5px;
    background: #00c853;
    color: #10251a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
.procomp-builder:hover .procomp-builder__action { background: #4ade80; }
.procomp-builder__action svg { flex-shrink: 0; }
.procomp-builder__art {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    width: calc(100% + 20px);
    max-width: none;
    height: auto;
    pointer-events: none;
}
.procomp-home :is(.procomp-intro a, .procomp-intro input, .procomp-intro button, .procomp-category):focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 3px;
}
.procomp-home .refurb-wrap { margin-top: 32px; scroll-margin-top: 160px; }
.procomp-home .refurb-wrap > div { margin-inline: 16px; }
.procomp-home .refurb-header { margin-bottom: 12px; }
.procomp-home .refurb-title { font-size: clamp(22px, 2.5vw, 28px); line-height: 1.25; }
/* Parts finder (partials/section_parts.html). One dark panel in two halves:
   the finder itself, then the same parts by kind. Before, the finder took
   less than half of the width and its button was drawn at 40% until a
   manufacturer was chosen, so the one thing the block is for looked switched
   off (owner, 2026-12-01). The dark is the dark of the catalogue rail and
   the footer; the button is the catalogue button. */
.pc-parts { margin: 24px 16px 0; scroll-margin-top: 128px; }
.pc-parts__panel {
    display: grid;
    gap: 24px;
    padding: 20px;
    border-radius: 14px;
    background: #0f172a;
    color: #cbd5e1;
}
.pc-parts h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.pc-parts__lead { max-width: 46ch; margin: 8px 0 0; color: #94a3b8; font-size: 14px; line-height: 1.55; }
/* Two steps, numbered because the second opens only after the first. */
.pc-parts__steps { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.pc-parts__steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; }
.pc-parts__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    color: #052e16;
    font-size: 13px;
    font-weight: 700;
}
.pc-parts__steps li.is-waiting .pc-parts__num { background: #1e293b; color: #94a3b8; }
.pc-parts__field { position: relative; }
.pc-parts__input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #475569;
    border-radius: 10px;
    background: #1e293b;
    color: #fff;
    font-size: 15px;
}
.pc-parts__input::placeholder { color: #94a3b8; }
.pc-parts__input:focus { outline: none; border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.pc-parts__input:disabled { cursor: not-allowed; border-color: #334155; background: #172033; }
.pc-parts__options {
    position: absolute;
    inset: calc(100% + 4px) 0 auto;
    z-index: 30;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 40px -12px rgba(2, 6, 23, .5);
}
.pc-parts__options button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 16px;
    color: #334155;
    font-size: 14px;
    text-align: left;
}
.pc-parts__options button:is(:hover, .is-active) { background: #f0fdf4; color: #14532d; }
.pc-parts__none { padding: 22px 16px; color: #64748b; font-size: 14px; text-align: center; }
/* Starts where the fields start, past the step numbers. */
.pc-parts__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 38px);
    height: 52px;
    margin: 14px 0 0 38px;
    border-radius: 10px;
    background: #22c55e;
    color: #052e16;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .15s ease;
}
.pc-parts__submit:hover { background: #4ade80; }
.pc-parts__submit svg { width: 18px; height: 18px; }
.pc-parts__browse { display: grid; align-content: start; gap: 20px; min-width: 0; }
.pc-parts__shelf { min-width: 0; }
.pc-parts__shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-parts__shelf-head h3 { margin: 0; color: #fff; font-size: 15px; line-height: 1.3; font-weight: 600; }
.pc-parts__shelf-head a {
    display: flex;
    align-items: center;
    flex: none;
    min-height: 44px;
    color: #4ade80;
    font-size: 13px;
    font-weight: 600;
}
.pc-parts__shelf-head a:hover { color: #86efac; text-decoration: underline; text-underline-offset: 3px; }
/* On a phone the shelves are one row each that slides sideways, running to
   the edge of the panel so the cut-off chip shows there is more. */
.pc-parts__chips {
    display: flex;
    gap: 8px;
    margin: 0 -20px;
    padding: 0 20px 2px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}
.pc-parts__chips::-webkit-scrollbar { display: none; }
.pc-parts__chips li { flex: none; }
.pc-parts__chips a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #334155;
    border-radius: 9px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 13px;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease;
}
.pc-parts__chips a:hover { border-color: #22c55e; color: #fff; }
.pc-parts :is(a, button):focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }
@media (min-width: 640px) {
    .pc-parts__panel { padding: 28px; }
    .pc-parts__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-parts__chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
    .pc-parts__chips a { min-height: 40px; }
}
@media (min-width: 768px) {
    .pc-parts { margin-top: 40px; }
}
@media (min-width: 1024px) {
    .pc-parts__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; padding: 32px; }
    .pc-parts__finder { padding-inline-end: 36px; }
    .pc-parts__browse { padding-inline-start: 36px; border-inline-start: 1px solid #1e293b; }
    .pc-parts h2 { font-size: 26px; }
    .pc-parts__steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .pc-parts__submit, .pc-parts__chips a { transition: none; }
}
.procomp-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.procomp-category {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 64px;
    padding: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.procomp-category__icon { display: flex; align-items: center; flex-shrink: 0; }
.procomp-category:hover { border-color: #15803d; }
@media (max-width: 767px) {
    .procomp-intro__description { display: none; }
    .procomp-home .refurb-wrap { scroll-margin-top: 105px; }
}
@media (max-width: 359px) {
    .procomp-builder { padding: 20px 16px; grid-template-columns: minmax(0, 1fr) 37%; }
}
@media (min-width: 640px) {
    .procomp-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .procomp-home { padding: 32px 16px 48px; }
    .procomp-intro__search { display: none; }
    .procomp-builder {
        grid-template-columns: minmax(0, 1fr) 37%;
        grid-template-rows: auto;
        min-height: 268px;
        padding: 24px 32px;
        column-gap: 24px;
        row-gap: 14px;
    }
    .procomp-builder__copy { display: block; min-width: 0; }
    .procomp-builder__title { max-width: 25ch; margin-bottom: 12px; font-size: 30px; }
    .procomp-builder__description { margin-bottom: 20px; font-size: 14px; max-width: 45ch; }
    .procomp-builder__action { padding-inline: 20px; }
    .procomp-builder__art { grid-row: auto; width: 100%; height: 220px; object-fit: contain; }
}
@media (min-width: 1280px) {
    .procomp-builder { padding-inline: 40px; }
    .procomp-builder__title { font-size: 34px; }
    .procomp-builder__description { font-size: 15px; }
    .procomp-builder__art { height: 240px; }
    .procomp-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
