/* Photographic feasibility presentation within hint cards and detail views. */

.hint-score-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.hint-feasibility-score {
    color: #25445a;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.hint-score-row .hint-score {
    margin: 0;
}

/* Keep the detail dialog fixed to the viewport. Only the long description scrolls. */
#hint-detail-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#hint-detail-panel .reading {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#hint-detail-panel .hint-detail-body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 68, 90, 0.48) transparent;
    padding-right: 10px;
}

/* Keep the feasibility scoring detail compact so the explanatory text is easier to scan. */
#hint-detail-panel .hint-feasibility-detail {
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}

#hint-detail-panel .hint-feasibility-heading {
    margin-top: 0.35rem;
}

/* Keep every explanation in the same column regardless of score length. */
#hint-detail-panel .hint-feasibility-decision {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    column-gap: 0.45rem;
    align-items: start;
    margin-top: 0.15rem;
}

#hint-detail-panel .hint-feasibility-points {
    white-space: nowrap;
    text-align: right;
}

#hint-detail-panel .hint-feasibility-explanation {
    min-width: 0;
}

/* Definitive terrain obstruction marker shown halfway between the photographer and hint. */
.terrain-obstruction-marker {
    background: transparent;
    border: 0;
}

.terrain-obstruction-marker span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 24px;
    line-height: 26px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* A selected hint also makes its terrain obstruction marker visually distinct. */
.terrain-obstruction-marker.fpns-selected-terrain-obstruction span {
    transform: scale(1.15);
}

/* A slimmer, rounded scrollbar that suits the glass UI. */
#hint-detail-panel .hint-detail-body::-webkit-scrollbar {
    width: 7px;
}

#hint-detail-panel .hint-detail-body::-webkit-scrollbar-track {
    background: transparent;
}

#hint-detail-panel .hint-detail-body::-webkit-scrollbar-thumb {
    background: rgba(37, 68, 90, 0.42);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#hint-detail-panel .hint-detail-body::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 68, 90, 0.62);
    border: 1px solid transparent;
    background-clip: padding-box;
}

@media (max-width: 600px) {
    #hint-detail-panel .hint-detail-body {
        padding-right: 8px;
    }

    #hint-detail-panel .hint-detail-body::-webkit-scrollbar {
        width: 6px;
    }
}
