/* Product literature transcribed from the original engineering sheets. */
.spec-sheet { margin: 26px 0 36px; }
.spec-sheet > h3, .spec-sheet > h4 {
    margin: 24px 0 12px;
    color: var(--needle-ink);
    font-size: 19px;
    font-weight: 700;
}
.spec-sheet > h4 { font-size: 16px; }
.spec-sheet p { max-width: 78ch; }
.spec-list { margin: 0 0 18px 1.4rem; list-style: disc; }
.spec-list li + li { margin-top: 6px; }
.spec-list li::marker { color: var(--needle-accent-dark); }
.spec-table-wrap {
    max-width: 100%;
    margin: 15px 0 25px;
    overflow-x: auto;
    border: 1px solid var(--needle-border);
    border-radius: 6px;
    background: var(--needle-paper);
}
.spec-table-wrap:focus-visible { outline: 2px solid var(--needle-accent-dark); outline-offset: 2px; }
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    line-height: 1.48;
    text-align: left;
}
.spec-table caption {
    padding: 12px 15px;
    color: var(--needle-ink);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}
.spec-table thead { background: var(--needle-ink); color: #fff; }
.spec-table th, .spec-table td { padding: 9px 14px; vertical-align: top; }
.spec-table th { font-weight: 650; }
.spec-table tbody th, .spec-table td { border-top: 1px solid var(--needle-border); }
.spec-table tbody tr:nth-child(even) { background: var(--needle-surface); }
.spec-table th, .spec-table td { min-width: 65px; }
.spec-table th:first-child, .spec-table td:first-child { min-width: 110px; }
.spec-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 14px 0 22px; }
.spec-photos-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.needle-specs .spec-figure { max-width: 920px; margin: 14px 0 22px; }
.spec-figure figcaption { margin-top: 8px; font-size: 14px; }
.spec-crop {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--needle-border);
    border-radius: 6px;
}
.needle-specs .spec-crop img {
    position: absolute;
    top: var(--image-y);
    left: var(--image-x);
    width: var(--image-width);
    height: auto;
    max-width: none;
    border: 0;
}
.spec-source { margin: 17px 0 22px; }
.spec-source summary { display: list-item; color: var(--needle-accent-dark); cursor: pointer; font-weight: 600; }
.spec-source figure { margin: 12px 0; }

/* Structured engineering diagram sections (connector pinout & dimensional drawing) */
.spec-card {
    margin: 28px 0 36px;
    padding: 24px 28px;
    border: 1px solid var(--needle-border);
    border-radius: 10px;
    background: var(--needle-paper);
    container-type: inline-size;
}
.spec-card-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--needle-border);
}
.spec-card-head h3 {
    margin: 0 0 6px;
    color: var(--needle-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.spec-card-lead {
    margin: 0;
    color: #556470;
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 78ch;
}
.spec-diagram {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid var(--needle-border);
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}
.spec-diagram img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
    border: 0;
}
.spec-diagram figcaption {
    margin-top: 12px;
    color: #556470;
    font-size: 13.5px;
    line-height: 1.5;
}
.spec-drawing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}
.spec-drawing-grid .spec-diagram {
    margin-bottom: 0;
}
.spec-drawing-grid .spec-diagram img {
    max-width: 640px;
}
.spec-drawing-meta .spec-table-wrap {
    margin: 0;
}
.spec-pin-code {
    display: inline-block;
    padding: 2px 7px;
    margin: 2px 4px 2px 0;
    border-radius: 4px;
    background: #eef4f7;
    color: var(--needle-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
}
@container (width < 780px) {
    .spec-drawing-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 660px) {
    .spec-card { padding: 16px; }
    .spec-diagram { padding: 12px; }
    .spec-photos, .spec-photos-three { grid-template-columns: 1fr; }
    .spec-table th, .spec-table td { padding: 8px 10px; }
    .spec-table { font-size: 14px; }
}
