:root {
  color-scheme: dark;
  --bg: #15171b;
  --surface: #1f2125;
  --fg: #fff;
  --muted: rgb(255 255 255 / 60%);
  --line: #414141;
  --accent: #ced2db;
  --yes: #46d08f;
  --no: #ef5350;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

.topbar,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
}

nav a,
a {
  color: var(--accent);
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 24px 0 12px;
}

h2 {
  font-size: 1.2rem;
  margin: 32px 0 8px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
}

code,
pre {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label.choice {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

button {
  align-self: flex-start;
  font: inherit;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
}

.notice {
  border-left: 3px solid var(--yes);
  padding-left: 12px;
}

.problem {
  border-left: 3px solid var(--no);
  padding-left: 12px;
}

footer {
  color: var(--muted);
  font-size: 0.9rem;
  padding-block: 40px;
}

a.button {
  display: inline-block;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 6px;
  padding: 8px 18px;
  text-decoration: none;
}

form.signout {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.yes {
  color: var(--yes);
}

.no {
  color: var(--no);
}

form.search {
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
}

form.search label {
  flex: 1 1 16rem;
}

form.search button {
  align-self: flex-end;
}

div.audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 16px;
  margin: 32px 0 24px;
}

div.audiences section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 16px;
}

div.audiences h2 {
  margin-top: 12px;
}

ul.results {
  list-style: none;
  padding: 0;
}

ul.results li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

ul.results p.line {
  flex-basis: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 0.9rem;
}

ul.results .domain {
  color: var(--fg);
}

ul.results p.why {
  color: var(--muted);
  font-style: italic;
}

.tag {
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
  color: var(--muted);
}

.tag.listed {
  color: var(--yes);
  border-color: var(--yes);
}

.report-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.report-head .icon {
  flex: none;
  margin-top: 28px;
  border-radius: 12px;
  background: var(--surface);
  object-fit: contain;
}

.report-head h1 {
  overflow-wrap: anywhere;
}

ul.tiles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--fg);
}

.tile.yes {
  border-top-color: var(--yes);
}

.tile.no {
  border-top-color: var(--no);
}

.tile span,
.tile small {
  color: var(--muted);
  font-size: 0.85rem;
}

ul.blockers li {
  margin-bottom: 12px;
}

ul.blockers .detail {
  display: block;
}

ul.blockers .detail::first-letter {
  text-transform: uppercase;
}

ul.blockers p {
  margin: 4px 0 0;
  color: var(--muted);
}

ul.levels li.yes strong {
  color: var(--yes);
}

div.scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}

td:first-child,
td.nowrap,
th {
  white-space: nowrap;
}

td a {
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-weight: 600;
}

dl.server {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 0 0 16px;
}

dl.server dt {
  color: var(--muted);
}

dl.server dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  table.stack thead {
    display: none;
  }

  table.stack tr,
  table.stack td {
    display: block;
  }

  table.stack tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  table.stack td {
    border: 0;
    padding: 0;
    white-space: normal;
  }

  table.stack td:first-child {
    font-weight: 600;
  }

  table.stack td.nowrap {
    color: var(--muted);
    font-size: 0.85rem;
  }
}

.claimed {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.claimed p {
  margin: 6px 0;
}
