/*
 * mentaxonomy Molecular
 * Analysis query component.
 */


/* Component
-------------------------------------------------- */

.analysis-query {
    margin-top: 32px;
    padding: 28px 30px;

    background: #fff;

    border: 1px solid #dfe7e1;
    border-radius: 8px;

    box-shadow:
        0 4px 16px rgba(28, 52, 38, 0.035);
}


/* Header
-------------------------------------------------- */

.analysis-query__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 22px;
}

.analysis-query__eyebrow {
    margin: 0 0 6px;

    color: #397c55;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.analysis-query__header h3 {
    margin: 0;

    color: #20382a;

    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.analysis-query__meta {
    flex: 0 0 auto;

    padding: 4px 8px;

    color: #526158;
    background: #edf3ef;

    border: 1px solid #dde7e0;
    border-radius: 4px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}


/* Sequence
-------------------------------------------------- */

.analysis-query__sequence {
    margin: 0;
    padding: 18px 20px;

    overflow-x: auto;

    color: #27342d;
    background: #f7f9f8;

    border: 1px solid #dfe7e1;
    border-radius: 6px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 0.84rem;
    line-height: 1.65;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* SHA-256
-------------------------------------------------- */

.analysis-query__hash {
    display: flex;
    align-items: baseline;
    gap: 12px;

    margin-top: 16px;

    min-width: 0;
}

.analysis-query__hash-label {
    flex: 0 0 auto;

    color: #718078;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.analysis-query__hash-value {
    min-width: 0;

    overflow-wrap: anywhere;

    color: #526158;
    background: none;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 0.78rem;
    line-height: 1.5;
}


/* Responsive
-------------------------------------------------- */

@media (max-width: 700px) {

    .analysis-query {
        margin-top: 26px;
        padding: 24px;
    }

    .analysis-query__header {
        gap: 16px;
    }

    .analysis-query__sequence {
        padding: 16px;

        font-size: 0.8rem;
    }

    .analysis-query__hash {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {

    .analysis-query {
        padding: 20px;
    }

    .analysis-query__header {
        align-items: flex-start;
    }

    .analysis-query__sequence {
        padding: 14px;
    }
}