/* DNS-specific diagnostics; shared cross-tool report styles live separately. */
.dns-comparison {
    margin: .75rem 0;
    padding: .875rem;
    border: 1px solid var(--c-border-hi, #354158);
    border-left: 3px solid var(--c-accent, #42b4e9);
    border-radius: 12px;
    background: var(--c-surface-2, rgba(130, 160, 200, .07));
    overflow-wrap: anywhere;
}
.dns-comparison[hidden] { display: none; }
.dns-comparison h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.dns-comparison p { margin: .5rem 0; }
.dns-comparison p:last-child { margin-bottom: 0; }
.dns-comparison-observation { font-size: 1.05rem; }
.dns-scope-note, .dns-dnssec-note { font-size: .9rem; line-height: 1.65; }
.dns-difference { margin: .5rem 0; }
.dns-difference ul { margin: .35rem 0; padding-left: 1.25rem; }
.dns-difference code { white-space: normal; overflow-wrap: anywhere; }
.dns-results {
    /* Each resolver needs room for its record table, regardless of sidebar width. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 12px;
    align-items: start;
    min-width: 0;
}
.dns-section {
    /* An implicit auto track otherwise grows to the table's min-content width. */
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.dns-section > *, .dns-query-meta > div {
    min-width: 0;
    max-width: 100%;
}
.dns-section > h3 { margin: 0; }
.dns-provider-status { margin: 0 0 .5rem; line-height: 1.65; }
.dns-dnssec-note { margin: .5rem 0; }
.dns-query-meta { margin: .625rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; }
.dns-query-meta dt { font-weight: 600; }
.dns-query-meta dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.dns-table-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; border-radius: 8px; margin-bottom: .625rem; }
.dns-table-scroll:focus-visible { outline: 2px solid var(--c-accent, #42b4e9); outline-offset: 3px; }
.dns-record-table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.5; }
.dns-record-table caption { caption-side: top; text-align: left; color: inherit; font-weight: 600; padding: .5rem; }
.dns-record-table th, .dns-record-table td { text-align: left; vertical-align: top; padding: .5rem; border-bottom: 1px solid var(--c-border-hi, #354158); }
.dns-record-table th { white-space: nowrap; }
.dns-record-table td { overflow-wrap: anywhere; }
.dns-record-table td:first-child { min-width: 7rem; }
.dns-record-table td:nth-child(3) { min-width: 9rem; max-width: 28rem; }
.dns-record-links { margin-top: .5rem; font-size: .8rem; }
.dns-raw-response { margin-top: .5rem; }
.dns-raw-response > summary { min-height: 44px; cursor: pointer; padding: .625rem 0; font-weight: 600; }
.dns-raw-response .dns-card { margin-top: .5rem; min-width: 0; max-width: 100%; }
.dns-raw-response pre { min-width: 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.dns-record-links .diagnostic-links, .dns-record-links a { min-width: 0; max-width: 100%; }
.dns-type-row label { flex-shrink: 0; }
@media (max-width: 700px) {
    .dns-type-row { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .dns-type-row input.domain, .dns-type-row select.dns-type { width: 100%; min-width: 0; }
    .dns-comparison { padding: .75rem; }
    .dns-query-meta { display: block; }
    .dns-query-meta > div + div { margin-top: .6rem; }
}
