.home-tools-entry,
.tool-directory,
.tool-directory *,
.home-tools-entry * {
  box-sizing: border-box;
}

.home-tools-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 28px;
  margin: 0 0 54px;
  padding: 28px 30px;
  border: 1px solid #d6ddd8;
  border-left: 4px solid #e45d34;
  border-radius: 6px;
  background: #f7f9f6;
}

.home-tools-entry__eyebrow,
.tool-directory__eyebrow {
  margin: 0 0 6px;
  color: #b34424;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-tools-entry h2 {
  margin: 0 0 8px;
  color: #202624;
  font-size: 25px;
  line-height: 1.3;
}

.home-tools-entry p {
  margin: 0;
  color: #5e6965;
  font-size: 15px;
  line-height: 1.7;
}

.home-tools-entry__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  flex-wrap: wrap;
  max-width: 310px;
}

.home-tools-entry__links a,
.home-tools-entry__all {
  color: #176b61;
  font-size: 14px;
  font-weight: 600;
}

.home-tools-entry__all {
  grid-column: 1 / -1;
  width: fit-content;
  text-decoration: none;
}

.home-tools-entry__all span {
  margin-left: 7px;
  transition: transform 180ms ease;
}

.home-tools-entry__all:hover span,
.home-tools-entry__all:focus span {
  transform: translateX(4px);
}

.tool-directory {
  padding: 8px 0 68px;
}

.tool-directory__intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.tool-directory__intro h2 {
  margin: 0 0 12px;
  color: #202624;
  font-size: 30px;
  line-height: 1.3;
}

.tool-directory__intro > p:last-child {
  margin: 0;
  color: #5e6965;
  font-size: 16px;
  line-height: 1.8;
}

.tool-directory__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  min-width: 0;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid #d6ddd8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 39, 36, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tool-card:hover,
.tool-card:focus-within {
  border-color: #79a89e;
  box-shadow: 0 14px 34px rgba(30, 39, 36, 0.12);
  transform: translateY(-3px);
}

.tool-card > a {
  display: flex;
  height: 100%;
  min-height: 290px;
  flex-direction: column;
  padding: 26px;
  color: inherit;
  text-decoration: none;
}

.tool-card__topline,
.tool-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tool-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: #e6f2ee;
  color: #176b61;
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.tool-card__category {
  color: #b34424;
  font-size: 12px;
  font-weight: 700;
}

.tool-card h3 {
  margin: 24px 0 10px;
  color: #202624;
  font-size: 22px;
  line-height: 1.3;
}

.tool-card > a > p {
  margin: 0 0 24px;
  color: #5e6965;
  font-size: 15px;
  line-height: 1.75;
}

.tool-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e3e8e5;
  color: #6b7672;
  font-size: 12px;
}

.tool-card__footer > span:last-child {
  color: #e45d34;
  transition: transform 180ms ease;
}

.tool-card:hover .tool-card__footer > span:last-child,
.tool-card:focus-within .tool-card__footer > span:last-child {
  transform: translateX(4px);
}

[data-theme="dark"] .home-tools-entry,
[data-theme="dark"] .tool-card {
  border-color: #3c4743;
  background: #202724;
}

[data-theme="dark"] .home-tools-entry h2,
[data-theme="dark"] .tool-directory__intro h2,
[data-theme="dark"] .tool-card h3 {
  color: #edf2ee;
}

[data-theme="dark"] .home-tools-entry p,
[data-theme="dark"] .tool-directory__intro > p:last-child,
[data-theme="dark"] .tool-card > a > p,
[data-theme="dark"] .tool-card__footer {
  color: #b2bcb7;
}

[data-theme="dark"] .tool-card__icon {
  background: #293c37;
  color: #72d7c5;
}

[data-theme="dark"] .tool-card__footer {
  border-top-color: #3c4743;
}

@media (max-width: 767px) {
  .home-tools-entry {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
    padding: 24px 22px;
  }

  .home-tools-entry__links {
    justify-content: flex-start;
    max-width: none;
  }

  .home-tools-entry__all {
    grid-column: auto;
  }

  .tool-directory__grid {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .tool-card > a {
    min-height: 268px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-tools-entry__all span,
  .tool-card,
  .tool-card__footer > span:last-child {
    transition: none;
  }
}
