/* Shared tokens + search hit cards for index.html and Redoc subpages (/api/*.html) */
:root {
  color-scheme: light;
  --color-primary-base: #2962ff;
  --ga-bg: light-dark(#ffffff, #22242b);
  --ga-layer: light-dark(#fbfbfc, #2a2b33);
  --ga-text: light-dark(#1a1c21, #fbfbfc);
  --ga-text-sec: light-dark(#3b3c45, #c4c6d1);
  --ga-text-desc: light-dark(#555761, #9b9ca8);
  --ga-text-dis: light-dark(#9b9ca8, #555761);
  --ga-border: light-dark(#dcdde5, #555761);
  --ga-border-sec: light-dark(#ededf2, #3b3c45);
  --ga-hover: light-dark(#f3f3f6, #32343e);
  --ga-icon-bg: light-dark(#eef3ff, rgba(41, 98, 255, 0.16));
  --ga-icon-color: light-dark(#2962ff, #6eabfa);
  --ga-badge-bg: light-dark(#edf5fc, #233061);
  --ga-badge-hover: light-dark(#d9ebfc, #223d7a);
  --ga-badge-color: light-dark(#3b3c45, #c4c6d1);
  --ga-seg-bg: light-dark(#ededf2, #3b3c45);
  --ga-seg-active: light-dark(#ffffff, #2a2b33);
  --ga-shadow-hover: 0 6px 20px light-dark(rgba(26, 28, 33, 0.07), rgba(0, 0, 0, 0.35));
  --ga-shadow: 0 12px 32px light-dark(rgba(26, 28, 33, 0.14), rgba(0, 0, 0, 0.5));
  --ga-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dark { color-scheme: dark; }
.dark .icon-moon, .light .icon-sun { display: none; }
mark { background: rgba(41, 98, 255, 0.18); color: inherit; border-radius: 2px; }

/* Self-contained: also rendered inside the Redoc dialog, which has none of app.css's base styles */
.hit, .hit * { box-sizing: border-box; }
.hit .muted { margin: 0; color: var(--ga-text-desc); }
.hit {
  font: 14px/22px "Roboto", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px;
  color: var(--ga-text); text-decoration: none;
  background: var(--ga-bg); border: 1px solid var(--ga-border); border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hit:is(:hover, :focus-visible, .active) {
  border-color: var(--color-primary-base); box-shadow: var(--ga-shadow-hover);
  transform: translateY(-1px); outline: none;
}
.hit .m {
  flex-shrink: 0; width: 60px; margin-top: 2px; padding: 0 6px; border-radius: 4px;
  font: 600 11px/20px var(--ga-mono); text-align: center; text-transform: uppercase;
  color: #fff; background: #8b8d98;
}
.hit .m-get { background: #1a7f4b; }
.hit .m-post { background: #2962ff; }
.hit .m-put { background: #b25e09; }
.hit .m-patch { background: #7b3fe4; }
.hit .m-delete { background: #d32f2f; }
.hit .m-schema { color: var(--ga-text-sec); background: var(--ga-seg-bg); }
.hit-main { flex: 1; min-width: 0; }
.hit-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.hit-title b { font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.hit-title code { font: 13px var(--ga-mono); color: var(--ga-text-sec); overflow-wrap: anywhere; }
.hit-sub {
  display: block; margin-top: 2px; color: var(--ga-text-desc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hit-sub code { font: 12px var(--ga-mono); }
.hit .svc {
  flex-shrink: 0; margin-top: 1px; padding: 0 8px; border-radius: 21px;
  font-size: 12px; line-height: 20px; color: var(--ga-badge-color); background: var(--ga-badge-bg);
}
@media (max-width: 600px) {
  .hit { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .hit-main { order: 1; flex-basis: 100%; }
}
