/* Cardstop V75: direct, compact image-led directory on the TC/EN Card List hubs. */
body[data-cardstop-page="hub"] {
  overflow-x: hidden;
}

body[data-cardstop-page="hub"] .crawlable-set-directory {
  max-width: 100%;
  margin-top: 28px;
  padding: 24px;
  overflow: hidden;
}

body[data-cardstop-page="hub"] .set-directory-columns {
  min-width: 0;
  align-items: start;
  gap: 14px;
}

body[data-cardstop-page="hub"] .set-directory-group {
  min-width: 0;
  padding: 14px;
}

body[data-cardstop-page="hub"] .set-directory-group h3 {
  margin-bottom: 11px;
  font-size: 14px;
}

body[data-cardstop-page="hub"] .set-directory-list {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body[data-cardstop-page="hub"] .set-directory-list li {
  min-width: 0;
}

body[data-cardstop-page="hub"] .set-directory-list a {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  box-sizing: border-box;
  padding: 8px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 18px;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border-radius: 13px;
}

body[data-cardstop-page="hub"] .set-directory-thumb-v74 {
  width: 58px;
  height: 58px;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ecece8;
  border-radius: 10px;
  background: #f5f5f2;
}

body[data-cardstop-page="hub"] .set-directory-thumb-v74 img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 3px;
  display: block;
  object-fit: contain;
}

body[data-cardstop-page="hub"] .set-directory-copy-v74 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  overflow: hidden;
  white-space: normal;
}

body[data-cardstop-page="hub"] .set-directory-code-v74 {
  max-width: 100%;
  overflow: hidden;
  color: #ed0817;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-cardstop-page="hub"] .set-directory-list .set-directory-name-v74 {
  grid-row: auto;
  align-self: auto;
  min-width: 0;
  max-width: 100%;
  color: #111;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: normal;
}

body[data-cardstop-page="hub"] .set-directory-copy-v74 small {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #888;
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-cardstop-page="hub"] .set-directory-arrow-v74 {
  min-width: 0;
  color: #aaa;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  overflow: visible;
  text-align: center;
}

body[data-cardstop-page="hub"] .set-directory-list a:hover .set-directory-arrow-v74,
body[data-cardstop-page="hub"] .set-directory-list a:focus-visible .set-directory-arrow-v74 {
  color: #111;
  transform: translateX(2px);
}

body[data-cardstop-page="hub"] .set-directory-list a:focus-visible {
  outline: 3px solid #111;
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  body[data-cardstop-page="hub"] .set-directory-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  body[data-cardstop-page="hub"] .set-directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-cardstop-page="hub"] .crawlable-set-directory {
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    padding: 10px;
    box-sizing: border-box;
  }

  body[data-cardstop-page="hub"] .set-directory-columns {
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  body[data-cardstop-page="hub"] .set-directory-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
  }

  body[data-cardstop-page="hub"] .set-directory-list {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-cardstop-page="hub"] .set-directory-list a {
    min-height: 64px;
    padding: 6px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px;
    border-radius: 10px;
  }

  body[data-cardstop-page="hub"] .set-directory-thumb-v74 {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  body[data-cardstop-page="hub"] .set-directory-copy-v74 {
    gap: 1px;
  }

  body[data-cardstop-page="hub"] .set-directory-code-v74 {
    font-size: 8px;
    letter-spacing: .04em;
  }

  body[data-cardstop-page="hub"] .set-directory-list .set-directory-name-v74 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-cardstop-page="hub"] .set-directory-copy-v74 small {
    font-size: 7px;
  }

  body[data-cardstop-page="hub"] .set-directory-arrow-v74 {
    display: none;
  }
}

@media (max-width: 360px) {
  body[data-cardstop-page="hub"] .crawlable-set-directory {
    padding: 8px;
  }

  body[data-cardstop-page="hub"] .set-directory-group {
    padding: 6px;
  }

  body[data-cardstop-page="hub"] .set-directory-list {
    gap: 5px;
  }

  body[data-cardstop-page="hub"] .set-directory-list a {
    min-height: 60px;
    padding: 5px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 5px;
  }

  body[data-cardstop-page="hub"] .set-directory-thumb-v74 {
    width: 38px;
    height: 38px;
  }

  body[data-cardstop-page="hub"] .set-directory-code-v74 {
    font-size: 7.5px;
  }

  body[data-cardstop-page="hub"] .set-directory-list .set-directory-name-v74 {
    font-size: 8.5px;
  }

  body[data-cardstop-page="hub"] .set-directory-copy-v74 small {
    display: none;
  }
}
