
.styled-detail {
    margin-bottom: 8px;
    position: relative;
}

.styled-detail summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    background: var(--white-color);
    border-radius: 12px;
    user-select: none;
    position: relative;
    width: auto;
    border: 1px solid rgba(13, 38, 63, 0.14);
    border-left: 3px solid var(--nav-active-color);
    box-shadow: 0 1px 3px rgba(13, 38, 63, 0.08);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.styled-detail summary:hover {
    border-color: var(--nav-active-color);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.18);
    transform: translateY(-1px);
}

.styled-detail summary:focus-visible {
    outline: 2px solid var(--nav-active-color);
    outline-offset: 2px;
}

.styled-detail[open] summary {
    box-shadow: 0 2px 6px var(--dropdown-details-content-box-shadow-color);
}

.summary-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--summary-title-color);
    font-size: 0.7rem;
    letter-spacing: 0.07em;
}

.summary-value {
    margin-top: 3px;
    color: var(--summary-value-color);
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-chevron {
    margin-left: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--nav-active-color);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.summary-chevron svg {
    width: 16px;
    height: 16px;
}

.styled-detail summary:hover .summary-chevron,
.styled-detail[open] .summary-chevron {
    background: var(--nav-active-color);
    color: var(--white-color);
}

/* a few pulses on load so the control catches the eye once */
@media (prefers-reduced-motion: no-preference) {
    .summary-chevron {
        animation: summary-chevron-pulse 1.6s ease-out 0.8s 3;
    }
}

@keyframes summary-chevron-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45);
    }

    70%,
    100% {
        box-shadow: 0 0 0 9px rgba(249, 115, 22, 0);
    }
}

.summary-hint {
    margin-top: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nav-active-color);
    opacity: 0.85;
}

.styled-detail[open] .summary-hint {
    visibility: hidden;
}

.styled-detail .content {
    padding: 6px;
    background-color: var(--white-color);
    border-radius: 12px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 8px 24px var(--dropdown-details-content-box-shadow-color);
    border: 1px solid var(--dropdown-details-content-border-color);
    max-height: 320px;
    overflow-y: auto;
    animation: dropdown-details-open 0.15s ease;
}

@keyframes dropdown-details-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.styled-detail .content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-detail .content ul li a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--summary-value-color);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.styled-detail .content ul li a:hover,
.styled-detail .content ul li a:focus-visible {
    background-color: var(--dropdown-details-item-hover-background);
    color: var(--nav-active-color);
}

.styled-detail .content ul li a.is-current {
    font-weight: 600;
    color: var(--nav-active-color);
    background-color: var(--dropdown-details-item-hover-background);
}

.styled-detail .content ul li a.is-current::after {
    content: "✓";
    float: right;
    margin-left: 8px;
}

.summary-title-solution {
    font-weight: 600;
    font-size: 0.7rem;
    margin-left: -6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--dropdown-details-divider-color);
}

.summary-value-solution {
    font-weight: normal;
    font-size: 0.8rem;
    color: var(--text-color-light);
}
