/* StudyKit - tool directory and tool group styles.
   Loaded on the services page and on the tool_group archive. The directory
   itself reuses the services page card design; only the group headings, the
   group counts, and the archive listing need rules of their own. */

/* Group heading spanning the directory grid. */
.sk-services-grouphead {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  margin: 18px 0 2px;
  color: #452b61;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}

.sk-services-grouphead:first-child {
  margin-top: 0;
}

.sk-services-grouphead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5ddec;
}

.sk-services-groupcount {
  flex: none;
  order: 3;
  padding: 3px 9px;
  border: 1px solid rgba(104, 67, 139, 0.16);
  border-radius: 999px;
  background: #f8f4fa;
  color: #68438b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

/* Tool group archive. */
.sk-group-archive {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  line-height: 1.65;
}

.sk-group-archive-header {
  padding: 40px 34px;
  border: 1px solid #e5ddec;
  border-radius: 28px;
  background: linear-gradient(135deg, #fbf9fd 0%, #f0e9f8 100%);
  box-shadow: 0 20px 50px rgba(69, 43, 97, 0.09);
}

.sk-group-archive-header h1 {
  margin: 10px 0 12px;
  color: #452b61;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sk-group-archive-header p {
  max-width: 62ch;
  margin: 0;
  color: #61536b;
}

.sk-group-archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.sk-group-archive-item {
  display: flex;
}

.sk-group-archive-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px 20px 18px;
  border: 1px solid #e5ddec;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.sk-group-archive-link:hover {
  border-color: #cdb9dd;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(69, 43, 97, 0.1);
}

.sk-group-archive-name {
  color: #452b61;
  font-size: 1.02rem;
  font-weight: 900;
}

.sk-group-archive-blurb {
  margin: 7px 0 0;
  color: #66727b;
  font-size: 0.9rem;
}

.sk-group-archive-action {
  margin-top: 13px;
  color: #68438b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sk-group-empty {
  margin: 26px 0 0;
  color: #66727b;
}

@media (max-width: 720px) {
  .sk-group-archive-header {
    padding: 30px 24px;
  }

  .sk-group-archive-list {
    grid-template-columns: 1fr;
  }
}
