/**
 * Technical Inspection — import-conditions dropdowns.
 *
 * Native <details>/<summary>, matching the yellow accordion language
 * used on Tendering for Vehicle Registration Number.
 *
 * @package jpd-theme
 */

.jpd-page--technical-inspection .jpd-section-page__content:empty {
    display: none;
}

.jpd-tech-inspect {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.jpd-tech-inspect__accordion {
    min-width: 0;
    border: 0;
    background: transparent;
}

.jpd-tech-inspect__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 3.5rem;
    padding: 1rem 1.35rem;
    border: 1.5px solid #e8d48a;
    border-radius: 8px;
    background: #f3d249;
    color: #1a1a1a;
    font-family: var(--jpd-font-heading);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jpd-tech-inspect__summary::-webkit-details-marker,
.jpd-tech-inspect__summary::marker {
    display: none;
    content: '';
}

.jpd-tech-inspect__accordion[open] .jpd-tech-inspect__summary {
    border-radius: 8px 8px 0 0;
}

.jpd-tech-inspect__summary:hover,
.jpd-tech-inspect__summary:focus-visible {
    border-color: #df9f0c;
    box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.2);
    outline: 0;
}

.jpd-tech-inspect__summary-text {
    min-width: 0;
    margin: 0;
    font: inherit;
    color: inherit;
}

.jpd-tech-inspect__icon {
    display: block;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-right: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.jpd-tech-inspect__accordion[open] > .jpd-tech-inspect__summary .jpd-tech-inspect__icon {
    transform: rotate(225deg);
}

.jpd-tech-inspect__body {
    padding: 1.5rem 1.35rem 1.75rem;
    border: 1.5px solid #e8d48a;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--jpd-white);
}

@media (max-width: 768px) {
    .jpd-tech-inspect__summary {
        gap: 1rem;
        padding: 0.9rem 1rem;
    }

    .jpd-tech-inspect__body {
        padding: 1.15rem 0.85rem 1.35rem;
    }
}
