/* Individual Case Study 5: web security report */
code {
    color: #7CFF9B;
}

.privacy-note,
.report-explanation {
    padding: 1rem;
    border-left: 4px solid #35ff75;
    background-color: #08100b;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-heading h2 {
    margin-top: 0;
}

#scanStatus {
    margin-bottom: 0;
    color: #b9ffd0;
}

button {
    flex: 0 0 auto;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid #35ff75;
    background-color: #12351f;
    color: #7CFF9B;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

button:hover,
button:focus-visible {
    background-color: #7CFF9B;
    color: #050807;
    box-shadow: 0 0 12px rgba(124, 255, 155, 0.8);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.data-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #2d8f4f;
    border-radius: 6px;
    background-color: #08100b;
}

.data-panel h3 {
    margin: 0;
    padding: 1rem;
    border-bottom: 1px solid #35ff75;
    background-color: #12351f;
}

.data-panel dl {
    margin: 0;
}

.data-panel dl div {
    display: grid;
    grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.2fr);
    border-bottom: 1px solid #1d5f35;
}

.data-panel dl div:last-child {
    border-bottom: 0;
}

.data-panel dt,
.data-panel dd {
    margin: 0;
    padding: 0.85rem 1rem;
}

.data-panel dt {
    color: #b9ffd0;
    font-weight: bold;
}

.data-panel dd {
    overflow-wrap: anywhere;
    border-left: 1px solid #1d5f35;
    color: #7CFF9B;
}

.safety-list {
    display: grid;
    gap: 0.8rem;
    padding-left: 1.5rem;
}

.safety-list li::marker {
    color: #35ff75;
}

.source-list {
    display: grid;
    gap: 1rem;
}

.source-list article {
    padding: 1rem;
    border: 1px solid #2d8f4f;
    background-color: #08100b;
}

.source-list h3 {
    margin-top: 0;
}

.source-list p {
    margin-bottom: 0;
}

.source-list a {
    color: #7CFF9B;
}

.source-list a:hover,
.source-list a:focus-visible {
    color: #050807;
    background-color: #7CFF9B;
}

@media (max-width: 800px) {
    .report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section-heading {
        flex-direction: column;
    }

    .data-panel dl div {
        grid-template-columns: 1fr;
    }

    .data-panel dd {
        padding-top: 0;
        border-left: 0;
    }

    button {
        width: 100%;
    }
}
