/* Free Tools hub + tool pages. Uses Blocksy palette variables so it follows the site theme. */
.neps-tools {
  --nt-accent: var(--theme-palette-color-1, #2457d6);
  --nt-line: var(--theme-border-color, rgba(128, 128, 128, .28));
  width: var(--theme-container-width, 90%);
  max-width: var(--theme-normal-container-max-width, 1290px);
  margin: 0 auto;
  padding: 24px 0 64px;
  box-sizing: border-box;
}
.neps-tools h1 { margin: 0 0 8px; }
.nt-lead { margin: 0 0 20px; opacity: .8; font-size: 1.05em; }
.nt-muted { opacity: .65; font-weight: 400; font-size: .85em; }
.nt-hero { margin-bottom: 28px; }

/* Search */
.nt-search input {
  width: 100%; max-width: 560px; padding: 12px 14px; font-size: 16px;
  border: 1px solid var(--nt-line); border-radius: 10px; background: transparent; color: inherit; box-sizing: border-box;
}
.nt-search input:focus-visible, .nt-pill:focus-visible, .nt-card:focus-visible, .nt-btn:focus-visible {
  outline: 2px solid var(--nt-accent); outline-offset: 2px;
}
.nt-status { min-height: 1.4em; margin: 8px 0 0; font-size: .9em; opacity: .7; }

/* Category pills */
.nt-browse h2 { font-size: 1.15em; margin: 0 0 12px; }
.neps-tools .nt-pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nt-browse { margin: 0 0 40px; }
.nt-pills li { margin: 0; }
.nt-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--nt-line); text-decoration: none; color: inherit; transition: background .15s, border-color .15s, color .15s;
}
.nt-pill:hover, .nt-pill:focus-visible { border-color: var(--nt-accent); background: var(--nt-accent); color: #fff; }
.nt-count { font-size: .8em; opacity: .75; }

/* Categories */
.nt-category { margin: 0 0 40px; scroll-margin-top: 90px; }
.nt-category[hidden], .nt-card[hidden], .nt-browse[hidden], .nt-empty[hidden] { display: none; }
.nt-kicker { margin: 0 0 4px; font-size: .75em; letter-spacing: .08em; opacity: .55; }
.nt-category h3 { margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Cards */
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.nt-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--nt-line); border-radius: 12px;
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nt-card:hover, .nt-card:focus-visible { border-color: var(--nt-accent); box-shadow: 0 0 0 1px var(--nt-accent); transform: translateY(-2px); }
.nt-card-title { font-weight: 700; font-size: 1.05em; }
.nt-card-desc {
  /* clamp to 2 lines */
  opacity: .75; font-size: .92em; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Empty state */
.nt-empty { padding: 32px 0; }
.nt-btn { padding: 9px 18px; border-radius: 8px; border: 1px solid var(--nt-accent); background: transparent; color: var(--nt-accent); font: inherit; font-weight: 600; cursor: pointer; }
.nt-btn:hover { background: var(--nt-accent); color: #fff; }

/* Tool page */
.nt-app { margin: 0 0 40px; border: 1px solid var(--nt-line); border-radius: 12px; overflow: hidden; }
.nt-app iframe { display: block; width: 100%; height: 640px; border: 0; }
.nt-section { margin: 0 0 36px; max-width: 820px; }
.nt-section h2 { margin: 0 0 12px; }
.nt-section ul, .nt-section ol { padding-left: 1.3em; }
.nt-section li { margin: 0 0 6px; }
.nt-faq { border: 1px solid var(--nt-line); border-radius: 10px; padding: 12px 16px; margin: 0 0 10px; }
.nt-faq summary { cursor: pointer; font-weight: 600; }
.nt-faq p { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .nt-card, .nt-pill { transition: none; }
  .nt-card:hover, .nt-card:focus-visible { transform: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
