.text-tools-page {
  color: #26313f;
}

.text-tools-container {
  max-width: 1200px;
}

.text-tools-header {
  background:
    radial-gradient(circle at top right, rgba(142, 180, 28, 0.18), transparent 38%),
    #0c1726;
  border: 1px solid #24364d;
  border-radius: 1rem;
  color: #f8fafc;
  margin-bottom: 1.25rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  text-align: left;
}

.text-tools-eyebrow {
  color: #b8d45c;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.7rem;
}

main .text-tools-header h1 {
  color: #fff !important;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0 0 0.9rem;
  text-align: left;
}

.text-tools-header p:last-child {
  color: #c4cfdb;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
  max-width: 52rem;
}

.text-tools-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-tool-card {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e2eb;
  border-radius: 0.9rem;
  color: #26313f;
  display: flex;
  gap: 1rem;
  min-height: 9.5rem;
  padding: 1.35rem;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.text-tool-card:hover,
.text-tool-card:focus-visible {
  border-color: #8eb41c;
  box-shadow: 0 0.65rem 1.5rem rgba(23, 36, 52, 0.1);
  color: #26313f;
  text-decoration: none;
  transform: translateY(-2px);
}

.text-tool-card__icon {
  align-items: center;
  background: #eef5d7;
  border-radius: 0.8rem;
  color: #526d00;
  display: flex;
  flex: 0 0 4rem;
  font-size: 1.5rem;
  font-weight: 800;
  height: 4rem;
  justify-content: center;
}

.text-tool-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.text-tool-card__body strong {
  font-size: 1.25rem;
}

.text-tool-card__body span {
  color: #5d6a78;
  line-height: 1.65;
}

.text-tool-card__arrow {
  color: #769800;
  font-size: 1.55rem;
}

.text-tools-ad {
  margin: 1rem auto 1.75rem;
  min-height: 90px;
  text-align: center;
}

.text-tools-layout {
  align-items: flex-start;
}

.text-tools-content {
  text-align: left;
}

.text-tools-section {
  background: #fff;
  border: 1px solid #dbe3eb;
  border-radius: 0.85rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.text-tools-section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 1rem;
}

.text-tools-section p,
.text-tools-section li {
  font-size: 1.03rem;
  line-height: 1.8;
}

.text-tools-table-wrapper {
  overflow-x: auto;
}

.text-tools-table {
  margin-bottom: 0;
  min-width: 38rem;
}

.text-tools-table th,
.text-tools-table td {
  padding: 0.85rem;
  vertical-align: middle;
}

.text-tools-steps {
  margin: 0;
  padding-left: 1.35rem;
}

.text-tools-steps li + li {
  margin-top: 0.65rem;
}

.text-tools-note {
  background: #f4f7ed;
  border-left: 0.3rem solid #8eb41c;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
}

.text-tools-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.text-tools-related a {
  background: #eef4f9;
  border: 1px solid #d8e2eb;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.text-tools-sidebar {
  position: sticky;
  top: 1rem;
}

@media (max-width: 991.98px) {
  .text-tools-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .text-tools-grid {
    grid-template-columns: 1fr;
  }

  .text-tool-card {
    min-height: 8.5rem;
  }
}

@media (max-width: 420px) {
  .text-tool-card {
    align-items: flex-start;
  }

  .text-tool-card__icon {
    flex-basis: 3.25rem;
    height: 3.25rem;
  }
}
