.ip-main {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.ip-intro {
  max-width: var(--reading-max);
  margin-bottom: var(--section-space);
}

.ip-lead {
  max-width: var(--reading-max);
  margin-top: var(--gap);
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--large);
  line-height: var(--leading-wide);
}

.lookup-panel {
  position: relative;
  overflow: clip;
}

.lookup-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    var(--clear) 0,
    var(--clear) 27px,
    var(--etch) 28px,
    var(--clear) 29px
  );
  opacity: .4;
}

.lookup-heading,
.lookup-results,
.lookup-actions,
.lookup-source {
  position: relative;
}

.lookup-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
  padding-bottom: var(--card-space);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--groove-shadow);
}

.lookup-kicker {
  margin: 0 0 8px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: var(--tracking-label);
}

.lookup-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--glass);
  color: var(--muted);
  font-size: var(--small);
}

.lookup-status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--pill);
  background: var(--warn);
  box-shadow: 0 0 0 4px var(--glass-light);
}

.lookup-status[data-state="success"] {
  color: var(--success);
  border-color: var(--success);
}

.lookup-status[data-state="success"] .lookup-status-dot {
  background: var(--success);
}

.lookup-status[data-state="error"] {
  color: var(--error);
  border-color: var(--error);
}

.lookup-status[data-state="error"] .lookup-status-dot {
  background: var(--error);
}

.lookup-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: var(--card-space) 0 0;
  border: 1px solid var(--border);
  border-radius: var(--inner-radius);
  background: var(--bg);
  box-shadow: inset 0 2px 8px var(--shadow);
}

.lookup-result {
  min-width: 0;
  padding: var(--card-space);
  border-bottom: 1px solid var(--line);
}

.lookup-result:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.lookup-result:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.lookup-result dt {
  margin-bottom: 12px;
  color: var(--quiet);
  font-size: var(--small);
  font-weight: var(--medium);
}

.lookup-result dd {
  margin: 0;
}

.lookup-result-primary {
  background: var(--tint);
}

.lookup-value {
  min-height: 34px;
  color: var(--text);
  font-size: var(--large);
  font-weight: var(--semibold);
  overflow-wrap: anywhere;
}

.lookup-result-primary .lookup-value {
  font-size: var(--h3);
}

.lookup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: var(--card-space);
}

.lookup-source {
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: var(--small);
}

.ip-explanation {
  isolation: isolate;
}

.ip-explanation .etch-layer {
  inset-inline: 0;
}

.dns-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: calc(var(--gap) * 2);
  align-items: start;
}

.dns-layout .section-heading {
  margin-bottom: 0;
}

.dns-checklist h3 {
  margin-bottom: var(--gap);
}

.dns-checklist ul {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
}

.dns-checklist li + li {
  margin-top: 12px;
}

.dns-checklist .callout {
  margin-bottom: 0;
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: calc(var(--gap) * 2);
  align-items: center;
  background: var(--panel-high);
}

.privacy-panel p:last-child {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 768px) {
  .ip-main {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
  }

  .ip-intro {
    margin-bottom: var(--section-space);
  }

  .ip-lead {
    font-size: var(--body-size);
  }

  .lookup-heading {
    flex-direction: column;
  }

  .lookup-results {
    grid-template-columns: minmax(0, 1fr);
  }

  .lookup-result,
  .lookup-result:nth-child(odd),
  .lookup-result:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lookup-result:last-child {
    border-bottom: 0;
  }

  .lookup-actions .button {
    flex: 1 1 auto;
  }

  .dns-layout,
  .privacy-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap);
  }
}

@media (max-width: 380px) {
  .lookup-status {
    width: 100%;
  }

  .lookup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lookup-actions .button {
    width: 100%;
  }
}