/* SearXNG-Rust default theme (ported from the simple theme of SearXNG). */
:root {
  --bg: #fff;
  --fg: #1b1b1b;
  --muted: #5a5a5a;
  --link: #3050c0;
  --border: #d8d8d8;
  --accent: #3050c0;
  --card: #f6f7f9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --fg: #e6e6e6;
    --muted: #a0a0a0;
    --link: #8ab4f8;
    --border: #33363c;
    --accent: #8ab4f8;
    --card: #1e2025;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  max-width: 60rem;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
header h1 { font-size: 1.25rem; margin: 0; }
nav a { margin-left: .75rem; }
form.search { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
input[type="text"], input[type="search"], select {
  padding: .45rem .6rem; border: 1px solid var(--border); border-radius: .35rem;
  background: var(--bg); color: var(--fg); font: inherit;
}
input[type="search"], input[type="text"] { flex: 1 1 20rem; }
button { padding: .45rem .9rem; border: 1px solid var(--border); border-radius: .35rem; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1rem; }
.tabs a, .tabs label { padding: .2rem .6rem; border: 1px solid var(--border); border-radius: 1rem; font-size: .85rem; }
.tabs label { cursor: pointer; }
.tabs a.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
section.answer, section.infobox, section.correction {
  background: var(--card); border: 1px solid var(--border); border-radius: .5rem;
  padding: .75rem 1rem; margin-bottom: 1rem;
}
ul.results { list-style: none; padding: 0; margin: 0; }
ul.results > li { margin-bottom: 1.25rem; }
.result-url { color: var(--muted); font-size: .85rem; }
.result-title { font-size: 1.05rem; }
.result-content { color: var(--muted); font-size: .92rem; margin: .15rem 0 0; }
.result-meta { color: var(--muted); font-size: .78rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; }
.thumbs img { width: 100%; height: 8rem; object-fit: cover; border-radius: .35rem; border: 1px solid var(--border); }
.unresponsive { color: var(--muted); font-size: .82rem; margin-top: 2rem; }
.pagination { display: flex; gap: 1rem; justify-content: center; margin: 1.5rem 0; }
footer { color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); margin-top: 2rem; padding-top: .75rem; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--border); }
pre.error { background: var(--card); padding: 1rem; border-radius: .5rem; overflow-x: auto; }

/* Key/value rows from database backed engines */
.result-keyvalue {
  border-collapse: collapse;
  margin: 0.4rem 0;
  font-size: 0.9rem;
}
.result-keyvalue th,
.result-keyvalue td {
  border: 1px solid var(--border, #d0d0d0);
  padding: 0.2rem 0.5rem;
  text-align: left;
  vertical-align: top;
}
.result-keyvalue th {
  background: var(--surface, #f5f5f5);
  font-weight: 600;
  white-space: nowrap;
}
