/* Shop links block appended to glossary definition pages.
   Brand tokens only. Five tokens are absent from the glossary install, so
   those five carry the canonical tokens.css value as a var() fallback. */

/* No container. A cream box wrapping three bordered tiles was two levels of
   frame around what is really a short list of links. The tiles carry the
   affordance on their own. */
.kck-shop-links {
  max-width: var(--kck-measure-wide, 780px);
  margin: var(--doc-space-8) 0 var(--doc-space-6);
  padding: 0;
}

.kck-shop-links__heading {
  margin: 0 0 var(--doc-space-4);
  font-family: var(--doc-font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--doc-ink);
  text-transform: none;
}

.kck-shop-links__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--doc-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.kck-shop-links__item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.kck-shop-links__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--doc-space-3);
  min-height: 44px;
  padding: var(--doc-space-3) var(--doc-space-4);
  background: #fff;
  border: 1px solid var(--doc-info);
  border-radius: var(--doc-radius-sm);
  font-family: var(--doc-font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--doc-info);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    border-color var(--doc-dur, 200ms) var(--doc-ease, cubic-bezier(0.4, 0, 0.2, 1)),
    background-color var(--doc-dur, 200ms) var(--doc-ease, cubic-bezier(0.4, 0, 0.2, 1)),
    color var(--doc-dur, 200ms) var(--doc-ease, cubic-bezier(0.4, 0, 0.2, 1)),
    box-shadow var(--doc-dur, 200ms) var(--doc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

/* Chevron drawn in CSS, because the block's markup carries no SVG. */
.kck-shop-links__link::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--doc-info);
  border-right: 2px solid var(--doc-info);
  transform: rotate(45deg);
  transition:
    transform 160ms var(--doc-ease, cubic-bezier(0.4, 0, 0.2, 1)),
    border-color var(--doc-dur, 200ms) var(--doc-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.kck-shop-links__link:hover,
.kck-shop-links__link:focus {
  color: var(--doc-info);
  border-color: var(--doc-info);
  /* No --doc-info-hover token exists and a color is never invented, so the
     hover deepens the ground instead of the text. */
  background: var(--doc-info-wash, #e9eeef);
  box-shadow: var(--doc-shadow-sm);
  text-decoration: none;
}

.kck-shop-links__link:hover::after,
.kck-shop-links__link:focus::after {
  border-top-color: var(--doc-info);
  border-right-color: var(--doc-info);
  transform: rotate(45deg) translate(2px, -2px);
}

/* Ink, not the link color: a teal ring on teal text is close to invisible. */
.kck-shop-links__link:focus-visible {
  outline: 2px solid var(--doc-ink);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .kck-shop-links__list {
    grid-template-columns: 1fr;
  }
}
