/**
 * DNS Lookup — tool styles
 *
 * Layout, the record-value typography and the SOA field grid. Cards, tabs,
 * tables, badges and skeletons are frikwork's; nothing here restyles one.
 */

.dns-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: var(--fw-space-lg);
  align-items: start;
}

/* Grid children default to min-content width, which would let a wide TXT record
   stretch the column instead of scrolling inside .fw-table-wrap. */
.dns-side,
.dns-results-panel { min-width: 0; }

/* --- Record type reference ------------------------------------------------ */

.dns-ref {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dns-ref__item {
  display: flex;
  align-items: center;
  gap: var(--fw-space-sm);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--fw-border);
}
.dns-ref__item:last-child { border-bottom: none; }

.dns-ref__badge {
  min-width: 3.6rem;
  justify-content: center;
  font-family: var(--fw-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.dns-ref__text { color: var(--fw-text-muted); font-size: 0.82rem; }

/* --- Result header -------------------------------------------------------- */

.dns-report__head {
  display: flex;
  align-items: center;
  gap: var(--fw-space-md);
  margin-bottom: var(--fw-space-lg);
}

.dns-report__globe { font-size: 1.75rem; color: var(--fw-brand-text); flex-shrink: 0; }

.dns-report__id { min-width: 0; }
.dns-report__id h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dns-report__meta { margin: 0.2rem 0 0; text-transform: none; letter-spacing: 0; }

.dns-stats { margin-bottom: var(--fw-space-lg); }
.dns-stats .app-stat { padding: var(--fw-space-md); }
.dns-stats .app-stat__value { font-size: 1.4rem; }

/* --- Tabs and tables ------------------------------------------------------ */

.dns-tabs .fw-tabs { margin-bottom: var(--fw-space-md); }

.dns-table td { vertical-align: top; }

.dns-val {
  font-family: var(--fw-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.85rem;
  color: var(--fw-text);
  overflow-wrap: anywhere;
}

/* TXT records run to hundreds of characters (DKIM keys); cap the column so the
   rest of the row stays readable rather than being squeezed to nothing. */
.dns-val--wrap { display: inline-block; max-width: 56ch; }

.dns-copy-cell { width: 1%; white-space: nowrap; text-align: right; }

/* --- SOA ------------------------------------------------------------------ */

.dns-soa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--fw-space-md);
}

.dns-soa__field {
  padding: var(--fw-space-md);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-md);
  background: var(--fw-bg-2);
}

.dns-soa__label { display: block; margin-bottom: 0.3rem; }

.dns-soa__value {
  font-family: var(--fw-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.85rem;
  color: var(--fw-text);
  overflow-wrap: anywhere;
}

/* --- Loading -------------------------------------------------------------- */

.dns-loading {
  display: flex;
  flex-direction: column;
  gap: var(--fw-space-sm);
  padding: var(--fw-space-md) 0;
}
.dns-loading p { margin: var(--fw-space-xs) 0 0; }

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

@media (max-width: 1000px) {
  .dns-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .dns-val--wrap { max-width: none; }
  .dns-soa { grid-template-columns: 1fr; }
}
