.tools-stack {
  width: 100%;
}

.tools-table,
.tools-table tbody {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
}

.tools-table {
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-collapse: unset;
  border-spacing: 0;
}

.tools-table thead {
  display: none;
}

.tools-table tbody tr {
  display: grid;
  gap: 1.25rem;
  padding: 1.35rem;
  border: none;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(47, 79, 63, 0.06);
}

@media (min-width: 40rem) {
  .tools-table tbody tr:not(.tools-table-fb-row) {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    align-items: start;
    padding: 1.5rem;
  }
}

.tools-table td,
.tools-table th {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  vertical-align: top;
}

.media-column {
  text-align: left;
}

.tool-thumbnail,
.media-column .tool-thumbnail {
  display: block;
  width: 100%;
  max-width: 9.5rem;
  height: auto;
  margin: 0 0 0.65rem;
  border-radius: 0.45rem;
  box-shadow: 0 2px 10px rgba(42, 52, 48, 0.12);
}

.what-it-is {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #7a8280;
}

.free-label {
  color: #2f4f3f;
  font-weight: 600;
}

.tool-name {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2f4f3f;
}

.tool-number {
  color: #7a8280;
  font-weight: 600;
}

.tool-description,
.tools-table p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #4d5350;
}

.tool-description a,
.tools-table p a {
  color: #1a5fb4;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tool-description a:hover,
.tools-table p a:hover {
  color: #124a8c;
}

.tool-description-expandable {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.tool-description-expandable.collapsed {
  max-height: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
}

.tool-description-expandable.expanded {
  max-height: 5000px;
  opacity: 1;
  visibility: visible;
}

.expand-toggle {
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.2rem 0.1rem;
  border: none;
  background: none;
  color: #1a5fb4;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  touch-action: manipulation;
}

.expand-toggle:hover {
  color: #124a8c;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  max-width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(47, 79, 63, 0.22);
  border-radius: 0.55rem;
  background: #f7f8f7;
  color: #2f4f3f;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tool-button:hover {
  background: #eef2ef;
  border-color: rgba(47, 79, 63, 0.34);
  color: #243f32;
}

.tools-table-fb-row {
  grid-template-columns: 1fr;
}

.tools-table tbody tr.tools-table-fb-row {
  background: #2f4f3f;
  box-shadow: none;
}

.tools-table-fb-cell {
  text-align: left;
}

.tools-table-fb-cell p {
  margin: 0 0 1rem;
  color: #e7ebe8;
}

.fb-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(245, 245, 243, 0.28);
  border-radius: 0.55rem;
  background: rgba(245, 245, 243, 0.1);
  color: #f5f5f3 !important;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.fb-page-button:hover {
  background: rgba(245, 245, 243, 0.16);
  border-color: rgba(245, 245, 243, 0.4);
  color: #fff !important;
}

.tools-more {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.tools-more img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
}

.tools-more a {
  color: #1a5fb4;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tools-more a:hover {
  color: #124a8c;
}

.mobile-media {
  display: none;
}

@media (max-width: 39.99rem) {
  .tool-thumbnail,
  .media-column .tool-thumbnail {
    max-width: 8.5rem;
  }
}
