
/* ==========================================
   ADGUARDDNS.ORG — DNS RESULTS
   SECTION 03 — INTEGRATED INTO HERO
========================================== */

.dns-hero .dns-results {
  width: 100%;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-margin-top: 105px;
}

.dns-results,
.dns-results *,
.dns-results *::before,
.dns-results *::after {
  box-sizing: border-box;
}

.dns-results [hidden] {
  display: none !important;
}

/* MAIN PANEL */

.dns-hero .dns-results__panel {
  width: 100%;
  padding: 24px;
  border: 1px solid #e9dff1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(49,20,80,.045);
}

/* HEADER */

.dns-results__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.dns-results__intro {
  min-width: 0;
}

.dns-results__intro h2 {
  margin: 0 0 6px;
  color: #1d1530;
  font-family: var(
    --font-heading,
    "Plus Jakarta Sans",
    sans-serif
  );
  font-size: clamp(20px,2.2vw,24px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.25;
}

.dns-results__intro p {
  margin: 0;
  color: #62596d;
  font-size: 13px;
  line-height: 1.65;
}

/* STATUS BADGE */

.dns-results__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #e5d7f0;
  border-radius: 10px;
  background: #fbf8fd;
  color: #642b83;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.dns-results__state.is-observed {
  border-color: #b4eac6;
  background: #eefaef;
  color: #176b37;
}

.dns-results__state.is-unavailable {
  border-color: #f1c9c4;
  background: #fff3f1;
  color: #9e3629;
}

/* LIVE RESULTS */

.dns-results__details {
  margin-top: 22px;
}

/* NETWORK SUMMARY */

.dns-results__summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  border: 1px solid #b7eac5;
  border-radius: 12px;
  background: linear-gradient(
    110deg,
    #effcf2 0%,
    #f4fbf5 100%
  );
}

.dns-results__summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #19843c;
  color: #ffffff;
}

.dns-results__summary-icon svg {
  width: 25px;
  height: 25px;
}

.dns-results__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #32854b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.dns-results__summary h3 {
  margin: 0 0 4px;
  color: #145c2e;
  font-family: var(
    --font-heading,
    "Plus Jakarta Sans",
    sans-serif
  );
  font-size: clamp(16px,2vw,21px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dns-results__summary p {
  margin: 0;
  color: #345c40;
  font-size: 12px;
  line-height: 1.6;
}

/* STATISTICS */

.dns-results__metrics {
  display: grid;
  grid-template-columns: repeat(
    3,
    minmax(0,1fr)
  );
  gap: 12px;
  margin-top: 18px;
}

.dns-results__metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 91px;
  padding: 17px 20px;
  border: 1px solid #eee4f9;
  border-radius: 13px;
  background: #f6f0fc;
}

.dns-results__metric span {
  color: #564868;
  font-size: 12px;
  font-weight: 600;
}

.dns-results__metric strong {
  color: #301054;
  font-family: var(
    --font-heading,
    "Plus Jakarta Sans",
    sans-serif
  );
  font-size: clamp(17px,2vw,23px);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* OBSERVED RESOLVERS */

.dns-results__list {
  margin-top: 23px;
}

.dns-results__list h3 {
  margin: 0 0 12px;
  color: #1e1530;
  font-family: var(
    --font-heading,
    "Plus Jakarta Sans",
    sans-serif
  );
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.dns-results__table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e8dcf4;
  border-radius: 13px;
}

.dns-results__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #241b35;
  font-size: 12px;
}

.dns-results__table th {
  padding: 13px 14px;
  background: #f1e7fa;
  color: #49216a;
  font-weight: 800;
  text-align: left;
}

.dns-results__table th:nth-child(1) {
  width: 6%;
}

.dns-results__table th:nth-child(2) {
  width: 29%;
}

.dns-results__table th:nth-child(3) {
  width: 37%;
}

.dns-results__table th:nth-child(4) {
  width: 28%;
}

.dns-results__table td {
  padding: 13px 14px;
  border-top: 1px solid #eee5f4;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.dns-results__table tbody tr:nth-child(even) td {
  background: #fdfbff;
}

.dns-results__table td:nth-child(2) {
  color: #2c1550;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dns-results__table td:first-child {
  font-weight: 700;
}

/* IMPORTANT NOTE */

.dns-results__notice {
  display: flex;
  gap: 13px;
  margin-top: 19px;
  padding: 15px 17px;
  border-radius: 12px;
  background: #f4edfd;
  color: #33234c;
}

.dns-results__notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 2px solid #6d239d;
  border-radius: 50%;
  color: #6d239d;
  font-size: 17px;
  font-weight: 800;
  font-family: Georgia,serif;
  line-height: 1;
}

.dns-results__notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

/* STATUS EXPLANATION */

.dns-results__note {
  margin: 15px 0 0;
  color: #746b7d;
  font-size: 12px;
  line-height: 1.7;
}

/* ==========================================
   MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 720px) {

  .dns-hero .dns-results {
    margin-top: 14px;
  }

  .dns-hero .dns-results__panel {
    padding: 17px;
    border-radius: 14px;
  }

  .dns-results__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .dns-results__state {
    min-height: 35px;
  }

  .dns-results__details {
    margin-top: 17px;
  }

  .dns-results__metrics {
    grid-template-columns: repeat(
      2,
      minmax(0,1fr)
    );
    gap: 9px;
  }

  .dns-results__metric {
    min-height: 76px;
    padding: 13px;
  }

  .dns-results__metric:last-child {
    grid-column: 1 / -1;
  }

  .dns-results__summary {
    padding: 14px;
    align-items: flex-start;
    gap: 11px;
  }

  .dns-results__summary-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .dns-results__summary-icon svg {
    width: 21px;
    height: 21px;
  }

  /* Turn table rows into readable mobile cards */

  .dns-results__table-wrap {
    border: 0;
    overflow: visible;
  }

  .dns-results__table,
  .dns-results__table tbody,
  .dns-results__table tr,
  .dns-results__table td {
    display: block;
    width: 100%;
  }

  .dns-results__table thead {
    display: none;
  }

  .dns-results__table tr {
    margin-bottom: 10px;
    border: 1px solid #e8dcf4;
    border-radius: 11px;
    overflow: hidden;
  }

  .dns-results__table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #f0e8f5;
    text-align: right;
  }

  .dns-results__table td:last-child {
    border-bottom: 0;
  }

  .dns-results__table td::before {
    content: attr(data-label);
    color: #665974;
    font-weight: 700;
    text-align: left;
    flex: 0 0 42%;
  }

  .dns-results__notice {
    padding: 13px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .dns-results,
  .dns-results * {
    scroll-behavior: auto !important;
  }
}
