/* DNS and MX lookup pages: results under the shared website-check form. */
.dns-tool .dns-results {
  margin-top: 20px;
}
.dns-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 0 0 16px;
}
.dns-summary p {
  margin: 0;
}
.dns-headline {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.dns-summary[data-state='failed'] .dns-headline {
  color: var(--warning);
}
.dns-alias {
  margin-bottom: 16px;
}
.dns-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.dns-group h2 {
  font-size: 17px;
  margin: 0 0 10px;
}
.dns-group p {
  margin: 0;
}
.dns-group p[data-state] {
  color: var(--warning);
}
.dns-group .table-scroll {
  overflow-x: auto;
}
.dns-group table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.dns-group th,
.dns-group td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  padding: 8px 10px;
}
.dns-group th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.dns-group td:first-child,
.dns-group td:last-child {
  white-space: nowrap;
}
.dns-value {
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dns-group table + p {
  margin-top: 10px;
}
.dns-tool .record-guide dt {
  font-weight: 600;
  margin-top: 14px;
}
.dns-tool .record-guide dd {
  margin: 4px 0 0;
}
/* MX lookup: provider line, records table with addresses, and DNS-only checks. */
.mx-provider {
  margin: 0 0 16px;
}
.mx-provider p {
  margin: 0;
  overflow-wrap: anywhere;
}
.mx-provider p + p {
  margin-top: 6px;
}
.mx-note {
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.mx-records td p {
  margin: 0 0 4px;
}
.mx-alias {
  font-size: 13px;
  margin-top: 2px;
}
.mx-checks {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.mx-checks li {
  position: relative;
  margin: 6px 0;
  padding-left: 24px;
  overflow-wrap: anywhere;
}
.mx-checks li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--verified);
  content: '✓';
}
.mx-checks li[data-ok='false']::before {
  color: var(--warning);
  content: '!';
}
@media (max-width: 760px) {
  .dns-groups {
    grid-template-columns: 1fr;
  }
  /* One mail server per block: priority, host and TTL, then its addresses at full width. */
  .mx-records thead {
    display: none;
  }
  .mx-records tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
  }
  .mx-records tbody td {
    padding: 2px 0;
    border-bottom: 0;
  }
  .mx-records tbody td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .mx-records tbody td:first-child::before,
  .mx-records tbody td:last-child::before {
    color: var(--muted);
    font-size: 12px;
  }
  .mx-records tbody td:first-child::before {
    content: 'Priority ';
  }
  .mx-records tbody td:last-child::before {
    content: 'TTL ';
  }
}
