/* === RESEARCH INLINE CARD === */
.research-hint-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.3rem;
}
.research-hint {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
    font-size: 0.75em;
    color: var(--fg-faint);
    text-decoration: none;
    white-space: nowrap;
}

.research-hint:hover {
    color: var(--accent);
}

/* Step label replacing "details ->" */
.dd-inline-step {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
    font-size: 0.7rem;
    color: var(--accent);
    white-space: nowrap;
    animation: dd-step-fade 1.5s ease-in-out infinite;
}
@keyframes dd-step-fade {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

/* Error state */
.dd-inline-step.dd-error {
    color: #c44;
    animation: none;
}

/* Ready state */
.research-ready .research-hint {
    color: var(--accent);
    font-weight: 600;
}
.research-ready .research-hint:hover {
    opacity: 0.75;
}

/* === RESEARCH READY MODAL === */
.dd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dd-modal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 2rem 2.5rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.dd-modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 0.8rem;
}
.dd-modal-check {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.dd-modal-title {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
}
.dd-modal-topic {
    font-family: "PT Serif", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.3;
    margin-bottom: 0.4rem;
}
.dd-modal-summary {
    font-family: "PT Serif", Georgia, serif;
    font-size: 0.85rem;
    color: var(--fg-muted);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
.dd-modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}
.dd-modal-btn {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.4rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s;
}
.dd-modal-btn:hover { opacity: 0.85; }
.dd-modal-btn-primary {
    background: var(--accent);
    color: #fff;
}
.dd-modal-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg-muted);
}
