/* SearXNG branding in scrobblestack's house style (2026-10-07). Served by NPMplus from
   /data/custom_assets/brand/ and linked into every page after the theme stylesheet.
   The wordmark is live text, no background: "searx" in the theme's text colour, "ng" glowing in the
   theme's accent (--ctp-accent from dracula.css / catppuccin.css), Tektur 800 self-hosted (OFL).
   Start page: big wordmark. Preferences/About/Stats header: small wordmark in place of the logo image.
   Results page: the accent tile instead of the stock magnifier. Favicons are file overrides in the NPMplus host config. */

@font-face {
  font-family: "Tektur SX";
  src: url(/brand/tektur-800.woff2) format("woff2");
  font-weight: 800;
  font-display: block;
}

:root {
  --wm-top: var(--color-base-font);
  --wm-acc: var(--ctp-accent, #bd93f9);
  --wm-glow: 0 0 0.06em var(--wm-acc), 0 0 0.15em color-mix(in oklab, var(--wm-acc) 55%, transparent);
}
/* on light backgrounds a full neon glow just looks blurry */
:root.theme-light {
  --wm-glow: 0 0 0.12em color-mix(in oklab, var(--wm-acc) 35%, transparent);
}
@media (prefers-color-scheme: light) {
  :root.theme-auto {
    --wm-glow: 0 0 0.12em color-mix(in oklab, var(--wm-acc) 35%, transparent);
  }
}

.index .title::before,
.index .title::after,
a:has(> img.logo)::before,
a:has(> img.logo)::after {
  font-family: "Tektur SX", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.index .title::before,
a:has(> img.logo)::before {
  content: "searx";
  color: var(--wm-top);
}
.index .title::after,
a:has(> img.logo)::after {
  content: "ng";
  color: var(--wm-acc);
  text-shadow: var(--wm-glow);
}

/* start page */
.index .title {
  position: relative;
  background: none;
  min-height: 0;
  margin: 4rem auto 2.5rem;
  font-size: clamp(3.25rem, 14vw, 5.5rem);
}
/* the hidden "SearXNG" h1 is 4em tall and would push the wordmark around */
.index .title h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
}

/* Preferences / About / Stats header */
a:has(> img.logo) {
  display: inline-block;
  font-size: 2.25rem;
  text-decoration: none;
}
a:has(> img.logo) img.logo {
  display: none;
}

/* results page */
#search_logo svg {
  background: url(/brand/tile.svg?v=1) center / contain no-repeat;
}
#search_logo svg > * {
  display: none;
}
