/* =========================================================
   pages/tools.css
   ---------------------------------------------------------
   Minimal Tools hub inspired by Stripe / Notion.
   ========================================================= */

.nn-tools-page {
  display: grid;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 0 40px;
}

/* Page heading */

.nn-tools-hero {
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.nn-tools-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.75rem, 2vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.nn-tools-hero p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 0.96rem;
}

/* Sections */

.nn-tools-section {
  min-width: 0;
}

.nn-tools-section__head {
  margin-bottom: 8px;
}

.nn-tools-section__head h2 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 750;
}

.nn-tools-section__head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

.nn-tools-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.nn-tools-lower.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 620px;
}

.nn-tools-lower > .nn-tools-section + .nn-tools-section {
  padding-left: 28px;
  border-left: 1px solid #e5e7eb;
}

/* List rows */

.nn-tools-list {
  border-top: 1px solid #e5e7eb;
}

.nn-tools-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 4px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  text-decoration: none;
  transition: background-color 0.14s ease;
}

.nn-tools-row:hover,
.nn-tools-row:focus-visible {
  background: #fafafa;
  color: #111827;
  text-decoration: none;
}

.nn-tools-row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.nn-tools-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #4b5563;
  font-size: 0.95rem;
}

.nn-tools-row__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nn-tools-row__content strong {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.nn-tools-row__content small {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.3;
}

.nn-tools-row__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.78rem;
}

/* Help note */

.nn-tools-help {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.nn-tools-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #4b5563;
}

.nn-tools-help strong {
  display: block;
  color: #111827;
  font-size: 0.88rem;
}

.nn-tools-help p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Tablet */

@media (max-width: 980px) {
  .nn-tools-page {
    gap: 24px;
  }

  .nn-tools-lower {
    gap: 22px;
  }

  .nn-tools-lower > .nn-tools-section + .nn-tools-section {
    padding-left: 22px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .nn-tools-page {
    gap: 24px;
    padding-top: 8px;
  }

  .nn-tools-lower,
  .nn-tools-lower.is-single {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 24px;
  }

  .nn-tools-lower > .nn-tools-section + .nn-tools-section {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }

  .nn-tools-row {
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    gap: 11px;
    min-height: 64px;
  }

  .nn-tools-row__icon {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
  }

  .nn-tools-row__content strong {
    font-size: 0.9rem;
  }

  .nn-tools-row__content small {
    font-size: 0.78rem;
  }
}
