/* No web fonts: the site uses the visitor's system fonts, so nothing is downloaded for text rendering. */

/* Shared base for the standalone lookup pages (search.html, discussions_ai.html,
   revisions_ai.html). The three pages differ only in a few small details
   (max width, one or two result-row classes), which stay in a short inline
   <style> block on each page; everything they have in common lives here so
   it is downloaded once and served from cache on the next page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1b1f24; --paper: #f4f6f8; --paper-2: #ffffff; --rule: #d6dbe1;
  --ink-soft: #5c6570; --wikiblue: #3366cc; --wikiblue-deep: #2348a0;
  --heat-1: #d6402c; --accent: #a78bfa; --accent-deep: #8b6fe0; --maxw: 860px;
}
body { background: var(--paper); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; min-height: 100vh; }
header {
  border-bottom: 1.5px solid var(--ink); padding: 1rem clamp(1rem,4vw,2rem);
  background: var(--paper);
}
.header-row { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; font-weight: 600; }
h1 em { color: var(--accent-deep); font-style: normal; }
main { max-width: var(--maxw); margin: 0 auto; padding: 1.4rem clamp(1rem,4vw,2rem); }
.intro { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.2rem; line-height: 1.55; }
.search-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
#q {
  flex: 1; min-width: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: .9rem;
  border: 1.5px solid var(--ink); border-radius: 3px; padding: .45rem .7rem;
  background: var(--paper); color: var(--ink);
}
#q:focus { outline: 2px solid var(--wikiblue); border-color: var(--wikiblue); }
.lang-btns { display: flex; gap: .3rem; }
.lang-btns button {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: .75rem; letter-spacing: .06em;
  text-transform: uppercase; border: 1px solid var(--rule); border-radius: 2px;
  padding: .3rem .6rem; background: transparent; color: var(--ink-soft); cursor: pointer;
}
.lang-btns button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#status { font-size: .78rem; color: var(--ink-soft); margin-bottom: .5rem; min-height: 1.2em; }
.result { border-bottom: 1px solid var(--rule); padding: .75rem 0; line-height: 1.5; }
.result:last-child { border-bottom: none; }
.result-meta { font-size: .72rem; color: var(--ink-soft); margin-bottom: .3rem; letter-spacing: .03em; }
.result-meta a { color: var(--wikiblue-deep); text-decoration: none; }
.result-meta a:hover { text-decoration: underline; }
.result-body { font-family: Georgia, 'Times New Roman', serif; font-size: .95rem; }
mark { background: #fff3a3; color: inherit; border-radius: 2px; padding: 0 1px; }
#loading { display: none; font-size: .82rem; color: var(--ink-soft); }
#no-results { display: none; font-size: .88rem; color: var(--ink-soft); }
.back-btn-row { margin-top: 2.5rem; }
.back-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: .92rem; font-weight: 500;
  color: var(--ink); background: transparent; border: 1.5px solid var(--ink);
  border-radius: 3px; padding: .7rem 1.1rem; text-decoration: none; cursor: pointer;
}
.back-btn:hover { background: var(--ink); color: var(--paper); }
.back-btn .arrow { font-size: 1.05rem; line-height: 1; }
footer { max-width: var(--maxw); margin: 2rem auto 0; padding: .8rem clamp(1rem,4vw,2rem); border-top: 1px solid var(--rule); font-size: .72rem; color: var(--ink-soft); }
footer a { color: var(--ink-soft); }
.brand-home { color: inherit; text-decoration: none; }
.brand-home:hover { text-decoration: underline; }
