/* Ndovu Free SEO Tools. Uses the Ndovu theme's tokens when present, with fallbacks for any other theme. */
:root {
  --ndt-ink: var(--nd-ink, #111418);
  --ndt-muted: var(--nd-muted, #5d6470);
  --ndt-line: var(--nd-line, #e3e6eb);
  --ndt-paper: var(--nd-paper, #f6f7f9);
  --ndt-card: #fff;
  --ndt-accent: var(--nd-accent, #f39c12);
  --ndt-accent-ink: #a86500;
  --ndt-good: #15803d;
  --ndt-good-bg: #e7f6ec;
  --ndt-warn: #a86500;
  --ndt-warn-bg: #fff4e0;
  --ndt-bad: #b42318;
  --ndt-bad-bg: #fdecea;
  --ndt-radius: 16px;
}
:root[data-theme="dark"] {
  --ndt-ink: #eef0f3;
  --ndt-muted: #a3a9b3;
  --ndt-line: #262a31;
  --ndt-paper: #14161a;
  --ndt-card: #17191e;
  --ndt-accent-ink: #f6b24a;
  --ndt-good: #4ade80;
  --ndt-good-bg: rgba(74, 222, 128, 0.12);
  --ndt-warn: #f6b24a;
  --ndt-warn-bg: rgba(243, 156, 18, 0.14);
  --ndt-bad: #f87171;
  --ndt-bad-bg: rgba(248, 113, 113, 0.12);
}

/* The tool panel, inside its own nd-section on the tool page */
.ndt-app {
  background: var(--ndt-card);
  color: var(--ndt-ink);
  border: 1px solid var(--ndt-line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(12, 13, 16, 0.12);
  padding: 28px;
  min-height: 160px;
}
.ndt-loading {
  color: var(--ndt-muted);
}

/* Form */
.ndt-form {
  display: grid;
  gap: 18px;
}
.ndt-grid {
  display: grid;
  gap: 16px;
}
.ndt-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.ndt-field {
  display: grid;
  gap: 6px;
}
.ndt-field label,
.ndt-options legend {
  font-weight: 600;
  font-size: 14px;
}
.ndt-help {
  margin: 0;
  font-size: 13px;
  color: var(--ndt-muted);
}
.ndt-app input[type="text"],
.ndt-app input[type="url"],
.ndt-app input[type="number"],
.ndt-app input:not([type]),
.ndt-app textarea,
.ndt-app select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ndt-line);
  border-radius: 10px;
  background: var(--ndt-paper);
  color: var(--ndt-ink);
  font: inherit;
  font-size: 15px;
}
.ndt-app textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
}
.ndt-app input:focus-visible,
.ndt-app textarea:focus-visible,
.ndt-app select:focus-visible,
.ndt-button:focus-visible {
  outline: 3px solid rgba(243, 156, 18, 0.5);
  outline-offset: 1px;
  border-color: var(--ndt-accent);
}
.ndt-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--ndt-line);
  border-radius: 12px;
}
.ndt-check-option {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.ndt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ndt-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ndt-accent);
  color: #111418;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.ndt-button.is-secondary {
  background: var(--ndt-card);
  border-color: var(--ndt-line);
  color: var(--ndt-ink);
}
.ndt-button.is-ghost {
  background: none;
  border-color: var(--ndt-line);
  color: var(--ndt-ink);
}
.ndt-repeat {
  display: grid;
  gap: 10px;
}
.ndt-repeat-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 10px;
}

/* Results */
.ndt-results {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--ndt-line);
}
.ndt-results:empty {
  display: none;
}
.ndt-empty {
  margin: 0;
  color: var(--ndt-muted);
}
.ndt-muted {
  margin: 0;
  color: var(--ndt-muted);
  font-size: 14px;
}
.ndt-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.ndt-summary span {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.ndt-summary .is-fail {
  background: var(--ndt-bad-bg);
  color: var(--ndt-bad);
}
.ndt-summary .is-warn {
  background: var(--ndt-warn-bg);
  color: var(--ndt-warn);
}
.ndt-summary .is-pass {
  background: var(--ndt-good-bg);
  color: var(--ndt-good);
}
.ndt-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ndt-check {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--ndt-line);
  border-radius: 12px;
  background: var(--ndt-card);
}
.ndt-check strong {
  display: block;
  margin-bottom: 2px;
}
.ndt-check p {
  margin: 0;
  font-size: 14px;
  color: var(--ndt-muted);
}
.ndt-check .ndt-fix {
  margin-top: 6px;
  color: var(--ndt-ink);
}
.ndt-verdict {
  align-self: start;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--ndt-paper);
  color: var(--ndt-muted);
}
.ndt-check.is-pass .ndt-verdict {
  background: var(--ndt-good-bg);
  color: var(--ndt-good);
}
.ndt-check.is-warn .ndt-verdict {
  background: var(--ndt-warn-bg);
  color: var(--ndt-warn);
}
.ndt-check.is-fail .ndt-verdict {
  background: var(--ndt-bad-bg);
  color: var(--ndt-bad);
}
.ndt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0;
}
.ndt-stats div {
  padding: 14px;
  border: 1px solid var(--ndt-line);
  border-radius: 12px;
  background: var(--ndt-paper);
}
.ndt-stats dt {
  font-size: 12.5px;
  color: var(--ndt-muted);
}
.ndt-stats dd {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ndt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ndt-line);
  border-radius: 12px;
}
.ndt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ndt-table caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  color: var(--ndt-muted);
  font-size: 13px;
}
.ndt-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--ndt-paper);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ndt-muted);
  white-space: nowrap;
}
.ndt-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--ndt-line);
  vertical-align: top;
  overflow-wrap: anywhere;
  /* long URLs wrap, but a column never shrinks below this; narrow screens scroll the table instead */
  min-width: 8.5rem;
}
.ndt-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  background: var(--ndt-paper);
  border: 1px solid var(--ndt-line);
}
.ndt-notice.is-warn {
  background: var(--ndt-warn-bg);
  border-color: transparent;
}
.ndt-notice.is-error {
  background: var(--ndt-bad-bg);
  border-color: transparent;
  color: var(--ndt-bad);
}
.ndt-callout {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ndt-paper);
  border: 1px solid var(--ndt-line);
}
.ndt-callout p {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}
.ndt-code-inline {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ndt-card);
  border: 1px solid var(--ndt-line);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.ndt-code {
  margin: 0;
  padding: 16px;
  max-height: 420px;
  overflow: auto;
  border-radius: 12px;
  background: #111418;
  color: #f6b24a;
  font-size: 13px;
  line-height: 1.6;
}
.ndt-output {
  min-height: 200px;
}
.ndt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ndt-meter {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ndt-muted);
}
.ndt-meter-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--ndt-paper);
  overflow: hidden;
  border: 1px solid var(--ndt-line);
}
.ndt-meter-track i {
  display: block;
  height: 100%;
  background: var(--ndt-good);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.ndt-meter.is-over .ndt-meter-track i {
  background: var(--ndt-bad);
}

/* Google result preview (an approximation; always light, like Google) */
.ndt-serp {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--ndt-line);
  border-radius: 14px;
  background: #fff;
  color: #202124;
  font-family: Arial, sans-serif;
}
.ndt-serp.is-mobile {
  max-width: 420px;
}
.ndt-serp-site {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.ndt-serp-favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f3f4;
  border: 1px solid #dadce0;
}
.ndt-serp-site b {
  display: block;
  font-size: 14px;
  font-weight: 400;
}
.ndt-serp-site small {
  display: block;
  font-size: 12px;
  color: #4d5156;
}
.ndt-serp-title {
  margin: 0;
  color: #1a0dab;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}
.ndt-serp-desc {
  margin: 4px 0 0;
  color: #4d5156;
  font-size: 14px;
  line-height: 1.58;
}
.ndt-serp figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: #70757a;
}

/* Generator forms: two columns of short fields; long fields take the full width */
.ndt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ndt-form-grid .is-wide {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .ndt-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Section titles inside a long report (the on-page checker) */
.ndt-section-label {
  margin: 12px 0 0;
  font-size: 17px;
}

/* Heading outline: indentation follows the heading level */
.ndt-outline {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  border: 1px solid var(--ndt-line);
  border-radius: 12px;
  font-size: 14px;
}
.ndt-outline li {
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.ndt-outline .is-h2 {
  padding-left: 20px;
}
.ndt-outline .is-h3 {
  padding-left: 40px;
}
.ndt-outline .is-h4 {
  padding-left: 60px;
}
.ndt-outline .is-h5 {
  padding-left: 80px;
}
.ndt-outline .is-h6 {
  padding-left: 100px;
}
.ndt-outline-level {
  display: inline-block;
  min-width: 30px;
  margin-right: 8px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--ndt-warn-bg);
  color: var(--ndt-accent-ink);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

/* Share preview (an approximation of a large link card) */
.ndt-social {
  max-width: 520px;
  margin: 0;
  border: 1px solid var(--ndt-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #1c1e21;
}
.ndt-social-image {
  aspect-ratio: 1.91 / 1;
  background: #f0f2f5;
}
.ndt-social-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ndt-social-noimage {
  display: grid;
  place-items: center;
  height: 100%;
  color: #65676b;
  font-size: 14px;
}
.ndt-social-text {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #f0f2f5;
  font-family: Arial, sans-serif;
}
.ndt-social-text small {
  color: #65676b;
  font-size: 12px;
}
.ndt-social-text strong {
  font-size: 16px;
  line-height: 1.3;
}
.ndt-social-text p {
  margin: 0;
  color: #65676b;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ndt-social figcaption {
  padding: 8px 14px;
  font-size: 12px;
  color: #65676b;
  background: #fff;
}

/* The /tools/ search, in the site's dark feature hero */
.ndt-search {
  max-width: 560px;
  margin: 28px 0 0;
}
.ndt-search input {
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #111418;
  font: inherit;
  font-size: 17px;
}
.ndt-search input:focus-visible {
  outline: 3px solid rgba(243, 156, 18, 0.5);
  outline-offset: 2px;
}
.ndt-search-count {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--nd-night-muted, #a3a9b3);
}

/* Directory extras on the site's nd-card grid: category links, whole-card links, where each tool runs */
.ndt-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -16px 0 40px;
}
.ndt-category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ndt-line);
  border-radius: 999px;
  background: var(--ndt-card);
  color: var(--ndt-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.ndt-category-nav a:hover {
  border-color: var(--ndt-accent);
}
.ndt-category-nav small {
  color: var(--ndt-muted);
  font-weight: 500;
}
.ndt-category-nav [class*="nd-ic-"]::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: var(--ndt-accent-ink);
  -webkit-mask: var(--nd-icon) center/contain no-repeat;
  mask: var(--nd-icon) center/contain no-repeat;
}
.nd-cards .nd-grid .nd-card.ndt-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.ndt-card h3 + p {
  margin-bottom: 20px !important;
}
.ndt-group-link {
  justify-content: center;
  margin-top: 32px;
}
.ndt-card h3 a {
  color: inherit;
  text-decoration: none;
}
.ndt-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.ndt-card:hover {
  border-color: #e7c58f;
}
.nd-cards .nd-grid .nd-card.ndt-card p.ndt-card-engine {
  align-self: flex-start;
  margin-top: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--ndt-good-bg);
  color: var(--ndt-good);
}
.ndt-card[hidden],
[data-ndt-group][hidden],
[data-ndt-browse][hidden],
[data-ndt-none][hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .ndt-app {
    padding: 18px;
    border-radius: 16px;
  }
  .ndt-check {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ndt-repeat-row {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ndt-meter-track i {
    transition: none;
  }
}
