:root {
  --header-height: 132px;
  --thead-height: 35px;
  --page-gutter: 18px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #17211b;
  background: #f5f6f4;
}

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

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

table {
  border-collapse: collapse;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
}

.legal-page {
  padding-top: 0;
  overflow-x: visible;
}

.legal-header {
  position: static;
  padding: 18px var(--page-gutter);
}

.legal-brand {
  color: #17211b;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--page-gutter) 80px;
}

.legal-content h1 {
  margin-bottom: 8px;
}

.legal-content h2 {
  margin: 32px 0 8px;
  font-size: 18px;
}

.legal-content p {
  color: #445249;
  line-height: 1.65;
}

.legal-content a {
  color: #176b46;
}

.legal-content .legal-date {
  color: #66736b;
  font-size: 13px;
}

h1 {
  margin-bottom: 4px;
  line-height: 1.05;
  font-size: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dataset-summary {
  color: #66736b;
  font-size: 12px;
}

.dataset-summary::before {
  content: "·";
  margin-right: 10px;
  color: #a0aaa3;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px var(--page-gutter) 10px;
  border-bottom: 1px solid #dfe5df;
  background: rgba(255, 255, 255, .98);
}

@media (min-width: 841px) {
  header {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: 24px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-bottom: 4px;
  }

  header form {
    grid-column: 1 / -1;
  }
}

form {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 500px) 80px;
  gap: 12px;
  align-items: start;
}

label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
button {
  min-height: 40px;
  border: 1px solid #cbd4cc;
  border-radius: 7px;
  font: inherit;
}

input,
select {
  min-width: 0;
  width: 100%;
  padding: 0 11px;
  background: white;
}

button {
  cursor: pointer;
}

#search {
  margin-top: 8px;
}


.search-button {
  align-self: start;
  width: 80px;
  height: 40px;
  margin-top: 20px;
  background: #176b46;
  color: white;
  font-weight: 700;
}

button:disabled {
  opacity: .6;
  cursor: wait;
}

.dropdown,
.autocomplete {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

.dropdown.open,
.autocomplete.open {
  z-index: 80;
}

.location-row {
  display: block;
  min-width: 0;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  background: white;
  color: #17211b;
  text-align: left;
  font-weight: 600;
}

.dropdown-toggle::after {
  content: "▾";
  margin-left: 10px;
  color: #66736b;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 90;
  display: none;
  max-height: 440px;
  overflow: hidden;
  border: 1px solid #cbd4cc;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.dropdown.open .dropdown-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}

.dropdown-search-wrap {
  position: relative;
  border-bottom: 1px solid #e2e7e2;
}

.dropdown-search {
  border: 0;
  border-radius: 0;
  padding-right: 64px;
}

#clear-categories {
  position: absolute;
  top: 50%;
  right: 6px;
  padding: 0 9px;
  border-color: transparent;
  min-height: 32px;
  background: #f7faf8;
  color: #243128;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
}

.tree {
  max-height: 390px;
  overflow: auto;
  padding: 6px;
}

.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 90;
  max-height: 390px;
  overflow: auto;
  display: none;
  padding: 6px;
  border: 1px solid #cbd4cc;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.autocomplete.open .suggestions {
  display: block;
}

.suggestion {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 9px;
  border: 0;
  background: transparent;
  color: #17211b;
  text-align: left;
  font-weight: 600;
}

.suggestion:hover {
  background: #edf4ef;
}

.path {
  display: block;
  margin-top: 3px;
  color: #6a766e;
  font-size: 11px;
  font-weight: 400;
}

.tree-row {
  display: grid;
  grid-template-columns: 24px 18px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding-right: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.tree-row:hover {
  background: #edf4ef;
}

.tree-row input {
  width: 14px;
  min-height: 14px;
  margin: 0;
}

.twisty {
  min-height: 24px;
  width: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #66736b;
}

.twisty:not(.empty):hover {
  border-radius: 5px;
  background: #dce9df;
}

.twisty.empty {
  visibility: hidden;
}

.node-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.breadcrumbs {
  display: flex;
  gap: 5px;
  overflow: auto;
  min-height: 18px;
  margin-top: 5px;
  line-height: 13px;
  white-space: nowrap;
}

.breadcrumbs:empty {
  visibility: hidden;
}

.crumb {
  color: #627067;
  font-size: 11px;
}

.crumb+.crumb::before {
  content: "›";
  margin-right: 5px;
  color: #a0aaa3;
}

.results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 18px;
  margin-top: 8px;
}

.pricing-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #176b46;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-dialog {
  width: min(560px, calc(100dvw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid #d9e1da;
  border-radius: 14px;
  background: #fff;
  color: #17211b;
  box-shadow: 0 24px 80px rgba(23, 33, 27, .28);
}

.pricing-dialog::backdrop {
  background: rgba(16, 24, 19, .55);
  backdrop-filter: blur(2px);
}

.pricing-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.pricing-dialog h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

.eyebrow {
  color: #176b46;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dialog-close {
  flex: 0 0 auto;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-color: #d9e1da;
  background: #f5f7f5;
  font-size: 24px;
  line-height: 1;
}

.pricing-current {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e8f4ed;
  color: #145d3d;
  font-weight: 750;
}

.pricing-tiers {
  display: grid;
  gap: 0;
  margin-top: 18px;
  list-style: none;
}

.pricing-tiers li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #e7ebe7;
  font-size: 14px;
}

.pricing-tiers strong {
  flex: 0 0 auto;
  color: #176b46;
}

.pricing-note,
.pricing-example {
  margin-top: 16px;
  color: #5c6961;
  font-size: 13px;
  line-height: 1.5;
}

.pricing-example {
  color: #243128;
}

#status {
  margin: 0;
  color: #66736b;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.export-button {
  position: relative;
  overflow: hidden;
  min-height: 30px;
  padding: 0 12px;
  border-color: #cbd4cc;
  background: white;
  color: #243128;
  font-size: 12px;
  font-weight: 700;
}

.export-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--export-progress, 0%);
  height: 4px;
  background: #176b46;
  opacity: 0;
  transition: width .16s ease, opacity .16s ease;
}

.export-button.exporting::after {
  opacity: 1;
}

.error {
  color: #a12626 !important;
}

.status-skeleton {
  display: inline-block;
  width: 54px;
  height: 15px;
  margin: 0 2px;
  border-radius: 4px;
  vertical-align: -2px;
  background: linear-gradient(90deg, #edf0ed 25%, #f8faf8 50%, #edf0ed 75%);
  background-size: 200% 100%;
  animation: pulse 1.25s infinite;
}

.status-skeleton.price-skeleton {
  width: 42px;
}

.status-skeleton.count-skeleton {
  width: 20px;
}

main {
  width: 100%;
  min-width: 0;
}

.table-wrap {
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--header-height));
  overflow: auto;
  border-top: 1px solid #dfe5df;
  -webkit-overflow-scrolling: touch;
}

table {
  width: max(100%, 3400px);
  min-width: 3400px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  font-size: 13px;
}

col.wide-name-column {
  width: 320px;
}

col.wide-contact-column {
  width: 260px;
}

col.wide-link-column {
  width: 320px;
}

col.wide-phone-column {
  width: 190px;
}

/* Keep compact columns wide enough for their full label and a "100%" value. */
col:not([class]) {
  width: 128px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

th {
  padding: 10px 11px;
  background: #eef2ee;
  color: #526158;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 10px;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 #dfe5df;
}

.column-coverage {
  display: inline-block;
  margin-left: 6px;
  color: #176b46;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.column-coverage.loading {
  width: 27px;
  height: 10px;
  border-radius: 3px;
  vertical-align: -1px;
  background: linear-gradient(90deg, #dce5df 25%, #f7faf8 50%, #dce5df 75%);
  background-size: 200% 100%;
  animation: pulse 1.25s infinite;
}

td {
  max-width: 260px;
  padding: 10px 11px;
  border-top: 1px solid #e7ebe7;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f8faf8;
}

td:first-child {
  max-width: 320px;
  min-width: 320px;
  font-weight: 700;
}

td a {
  color: #176b46;
}

td:nth-child(6),
td:nth-child(8),
td:nth-child(9) {
  max-width: 260px;
}

.empty-row td {
  height: 39px;
}

.url-cell {
  max-width: 320px;
}

.url-cell a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-cta {
  position: fixed;
  left: 50vw;
  bottom: calc(38px + env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(680px, calc(100dvw - (var(--page-gutter) * 2)));
  padding: 0;
  border-top: 0;
  background: transparent;
  transform: translateX(-50%);
  pointer-events: none;
}

.export-cta .export-button {
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 0 16px;
  background: #176b46;
  color: white;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(23, 33, 27, .2);
  pointer-events: auto;
}

.export-cta .export-button::after {
  height: 14px;
}

.table-wrap.preview .export-cta {
  bottom: clamp(18px, 16vh, 120px);
}

.table-wrap.preview .export-cta .export-button {
  min-height: 78px;
  height: 78px;
  font-size: 18px;
  box-shadow: 0 14px 36px rgba(23, 33, 27, .22);
}

.export-expiry {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  margin: 0;
  color: #445249;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.table-wrap.preview .export-cta .status-skeleton {
  width: 96px;
  height: 24px;
  margin: 0 6px;
  border-radius: 6px;
  vertical-align: -5px;
}

.table-wrap.preview .export-cta .price-skeleton {
  width: 64px;
}

.export-cta .export-button:disabled {
  border-color: #aeb8b0;
  background: #e8f4ed;
  color: #176b46;
  opacity: 1;
}

.export-cta .export-button.exporting:disabled {
  border-color: #bdc4bf;
  background: #e3e6e4;
  color: #465049;
}

.skeleton td {
  height: 39px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.skeleton span {
  display: block;
  width: 85%;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(90deg, #edf0ed 25%, #f8faf8 50%, #edf0ed 75%);
  background-size: 200% 100%;
  animation: pulse 1.25s infinite;
}

.skeleton td:nth-child(3n) span {
  width: 55%;
}

.skeleton td:first-child span {
  width: 70%;
}

.skeleton td:nth-child(2) span {
  width: 76%;
}

.skeleton td:nth-child(3) span {
  width: 62%;
}

.skeleton td:nth-child(4) span,
.skeleton td:nth-child(5) span {
  width: 24px;
}

.skeleton td:nth-child(6) span {
  width: 72px;
}

.blurred-result {
  filter: blur(var(--row-blur));
  pointer-events: none;
  user-select: none;
}

@keyframes pulse {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 840px) {
  :root {
    --page-gutter: 14px;
  }

  header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .search-button {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
  }

  .breadcrumbs {
    min-height: 16px;
    padding-bottom: 2px;
  }

  .dropdown-panel,
  .suggestions {
    max-height: min(380px, calc(100dvh - var(--header-height) - 20px));
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding-right: 9px;
    padding-left: 9px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    margin-bottom: 14px;
  }

  .dataset-summary {
    flex-basis: 100%;
  }

  .dataset-summary::before {
    content: none;
  }

  form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-button {
    justify-self: stretch;
    width: 100%;
    min-height: 44px;
  }

  input,
  select,
  button,
  .dropdown-toggle {
    min-height: 44px;
  }

  label {
    gap: 6px;
    font-size: 13px;
  }

  .breadcrumbs {
    min-height: 17px;
    margin-top: 4px;
  }

  .results-actions {
    margin-top: 10px;
  }

  #status {
    font-size: 12px;
  }

  .dropdown-panel,
  .suggestions {
    max-height: min(52dvh, 420px);
  }

  .export-cta {
    width: calc(100dvw - (var(--page-gutter) * 2));
  }

  .export-cta .export-button,
  .table-wrap.preview .export-cta .export-button {
    min-height: 56px;
    height: 56px;
    font-size: 15px;
  }

}