/* Loaded AFTER extra.css — Ko-fi bar link only. Separate file = easier cache-bust if styles look “stuck”. */

html body .md-header nav a.xocoatl-kofi,
html body .md-header a.xocoatl-kofi {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.32rem 0.6rem;
  border-radius: 6px;
  font-size: clamp(0.62rem, 1.05vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  /* Flat colours only — kill any theme or legacy gradient on <a> */
  background: #14161c none !important;
  background-color: #14161c !important;
  background-image: none !important;
  border: 1px solid #343846;
  box-shadow: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  line-height: 1.25;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

html body .md-header a.xocoatl-kofi,
html body .md-header a.xocoatl-kofi .xocoatl-kofi__label {
  color: rgba(228, 230, 238, 0.58) !important;
  -webkit-text-fill-color: rgba(228, 230, 238, 0.58) !important;
}

html body .md-header a.xocoatl-kofi:hover,
html body .md-header a.xocoatl-kofi:hover .xocoatl-kofi__label {
  color: #e4e6ee !important;
  -webkit-text-fill-color: #e4e6ee !important;
}

html body .md-header a.xocoatl-kofi:hover {
  background: #1a1d26 none !important;
  background-color: #1a1d26 !important;
  background-image: none !important;
  border-color: #3d4455;
  box-shadow: none !important;
}

/* Tame the OS’s full-colour ☕ (often yellow/brown) so it matches the bar */
html body .md-header a.xocoatl-kofi .xocoatl-kofi__emoji {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: -0.12em;
  filter: grayscale(1) contrast(0.85) opacity(0.75);
  -webkit-filter: grayscale(1) contrast(0.85) opacity(0.75);
  text-shadow: none;
}

html body .md-header a.xocoatl-kofi:hover .xocoatl-kofi__emoji {
  filter: grayscale(0.9) contrast(0.9) opacity(0.9);
  -webkit-filter: grayscale(0.9) contrast(0.9) opacity(0.9);
}
