/* Compatibility logos and card bubbles. Self-contained. Do not edit other CSS files. */
:root {
  --compat-ink: #cfc8ba;
  --compat-ink-dim: #a8a496;
  --compat-gold: var(--gold-bright, var(--gold)); /* follows the angelic gold variable set */
  --compat-line: rgba(232, 228, 220, 0.22);
}

.compat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin: 12px 0 0;
  max-width: 100%;
  color: var(--compat-ink);
}

.tk-hero .compat-row,
.hx .compat-row {
  margin: 14px 0 0;
}

.compat-k {
  margin: 0;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: var(--compat-ink-dim);
  font-weight: 500;
  white-space: nowrap;
}

.compat-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.compat-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.compat-logos img,
.compat-logos svg {
  display: block;
  height: 18px;
  width: auto;
  color: var(--compat-ink);
  fill: currentColor;
  /* reserved box avoids shift if the file is slow */
}

@media (min-width: 720px) {
  .compat-row { gap: 12px 28px; }
  .compat-logos { gap: 28px; }
  .compat-logos img,
  .compat-logos svg { height: 22px; }
  .compat-k { line-height: 22px; font-size: 13px; }
}

.compat-logos li:hover img,
.compat-logos li:focus-within img,
.compat-logos li:hover svg,
.compat-logos li:focus-within svg {
  color: var(--compat-gold);
  filter: none;
  /* img assets are currentColor SVGs; a soft gold tint via opacity+sepia is a fallback */
}

/* Gold hover for raster/img SVGs that cannot inherit currentColor */
.compat-logos li:hover img,
.compat-logos li:focus-within img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(18%) saturate(650%) hue-rotate(6deg) brightness(95%);
}

/* Card bubbles: 16px icon in a 24px circle. Fixed row height so cards stay even. */
html body .card .works,
html body a.card .works {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 10px !important;
  min-height: 24px !important;
  height: 24px !important;
  overflow: hidden !important;
  max-width: 100%;
}

html body .card .works .wlabel,
html body a.card .works .wlabel,
html body .card .works .wchip.plain,
html body a.card .works .wchip.plain {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html body .card .works .wchip.compat-bubble,
html body a.card .works .wchip.compat-bubble,
html body .card .works .wchip.more,
html body a.card .works .wchip.more {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--compat-line) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
  color: var(--compat-ink) !important;
  font-family: var(--sans, system-ui, sans-serif) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  pointer-events: none;
  flex: 0 0 24px !important;
  overflow: hidden !important;
}

html body .card .works .wchip.compat-bubble img,
html body a.card .works .wchip.compat-bubble img {
  display: block;
  width: 16px;
  height: 16px;
  color: var(--compat-ink);
}

html body .card .works .wchip.compat-letter,
html body a.card .works .wchip.compat-letter {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--compat-ink) !important;
}

html body .card:hover .works .wchip.compat-bubble,
html body a.card:hover .works .wchip.compat-bubble,
html body .card:focus-within .works .wchip.compat-bubble,
html body a.card:focus-within .works .wchip.compat-bubble,
html body .card:hover .works .wchip.more,
html body a.card:hover .works .wchip.more,
html body .card:focus-within .works .wchip.more,
html body a.card:focus-within .works .wchip.more {
  border-color: color-mix(in srgb,var(--gold-bright) 70%,transparent) !important;
}

html body .card:hover .works .wchip.compat-bubble img,
html body a.card:hover .works .wchip.compat-bubble img,
html body .card:focus-within .works .wchip.compat-bubble img,
html body a.card:focus-within .works .wchip.compat-bubble img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(18%) saturate(650%) hue-rotate(6deg) brightness(95%);
}

/* Listing detail: icon bubbles, existing filter links stay. Do not move the buy column. */
html body .works.page .wchip,
html body .works.page a.wchip,
html body .works.page span.wchip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  min-height: 28px;
}

html body .works.page .wchip.compat-bubble,
html body .works.page a.wchip.compat-bubble {
  border-radius: 999px !important;
  padding: 4px 10px 4px 6px !important;
}

html body .works.page .wchip.compat-bubble img,
html body .works.page a.wchip.compat-bubble img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* Keep the plain note readable on detail pages, not on cards */
html body .works.page .wchip.plain {
  display: block !important;
  flex: 1 1 100% !important;
}

.compat-tm {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8f8a7e;
  max-width: 58em;
}

footer.ft .compat-tm,
footer.sf .compat-tm {
  margin-top: 10px;
}

.compat-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Store hero uses flex order on small screens (search=3, chips=4, everything else=5).
   Keep the Works with row directly under the search field. */
section.hero > .wrap > .compat-row {
  order: 3;
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

/* Listing: Connects to sits under the subtitle, left column, does not enter the buy box */
.pd-head .compat-row,
.page-head .compat-tools {
  margin: 10px 0 4px;
}

.pd-head .compat-logos img,
.page-head .compat-logos img {
  height: 18px;
}
@media (min-width: 720px) {
  .pd-head .compat-logos img,
  .page-head .compat-logos img { height: 22px; }
}

.pd-head .compat-row,
.page-head .compat-tools,
main .compat-tools {
  justify-content: flex-start;
  align-self: start;
  width: max-content;
  max-width: 100%;
}
.pd-head .compat-logos,
.page-head .compat-logos,
main .compat-tools .compat-logos {
  justify-content: flex-start;
  margin: 0;
}
