/* ------------------------------------------------------------------
   One tag, one shape — every tag on the site is drawn by this file.
   Pages that carry tags link this sheet last, so nothing local wins.
   ------------------------------------------------------------------ */

body a.tag,
body a.pill-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;

  padding: 10px 18px !important;
  border-radius: 999px !important;
  min-height: 0 !important;

  border: 1px solid rgba(43, 47, 54, .20) !important;
  background: linear-gradient(180deg, #fbfcfd 0%, #eef0f3 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 10px 24px -6px rgba(30, 40, 55, .22),
    0 2px 6px rgba(30, 40, 55, .08) !important;

  color: #1d2a25 !important;
  text-decoration: none !important;

  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace !important;
  font-size: clamp(11px, .95vw, 13.5px) !important;
  font-weight: 400 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease !important;
}

body a.tag:hover,
body a.pill-tag:hover {
  background: #fff !important;
  border-color: rgba(22, 88, 63, .45) !important;
  color: #1d2a25 !important;
  transform: none !important;
}

body a.tag .arw,
body a.pill-tag span {
  opacity: .55;
  font-size: inherit;
}

/* the row they sit in: same wrap, same rhythm everywhere */
body .tagrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  body .tagrow { gap: 7px; }
  body a.tag, body a.pill-tag {
    font-size: 12px !important;
    padding: 11px 16px !important;
    letter-spacing: .1em !important;
    white-space: normal !important;
  }
}
