.hint {
  border-bottom: 1.5px dashed var(--links);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Tippy theme: hint-card
   Uses mdBook CSS variables so the tooltip respects the active colour theme.
   -------------------------------------------------------------------------- */

.tippy-box[data-theme~='hint-card'] {
  background-color: var(--bg);
  color: var(--fg);
  border: 1px solid var(--sidebar-bg);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  line-height: 1.5;
  overflow: hidden;
}

.tippy-box[data-theme~='hint-card'] .tippy-content {
  padding: 0;
}

.tippy-box[data-theme~='hint-card'] > .tippy-arrow {
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Card layout: shaded header + body
   -------------------------------------------------------------------------- */

.hint-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.4em 0.65em;
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
  border-bottom: 1px solid var(--sidebar-bg);
}

.hint-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hint-card-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.75;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s;
}

.hint-card-link:hover {
  opacity: 1;
}

.hint-card-link svg {
  width: 0.8em;
  height: 0.8em;
  fill: currentColor;
}

.hint-card-summary {
  padding: 0.5em 0.65em;
}
