/* Grokipedia Truth Audit theme (/grokipedia/): the homepage card's look. Dark page with a
   faint gold dot grid, gold #c9a227, serif type, and a lens rim around the header image.
   Loaded after style.css on that page only. */
.theme-lens {
  --bg: #0b0b0c;
  --panel: #111112;
  --ink: #e8e2cf;
  --dim: #bdb6a3;
  --line: rgba(201, 162, 39, 0.28);
  --accent: #c9a227;
  --accent-soft: #f0d77a;
  --gold-hi: #e0c25a;
  background:
    radial-gradient(circle, rgba(201, 162, 39, 0.10) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}
.theme-lens .site-header, .theme-lens .site-footer { background: rgba(11, 11, 12, 0.92); border-color: var(--line); }
.theme-lens .site-nav a[aria-current="page"], .theme-lens .site-nav a:hover { color: var(--gold-hi); }
.theme-lens a { color: var(--accent); }
.theme-lens a:hover { color: var(--accent-soft); }

/* Header image inside a lens rim: thin gold, then a dark band, then a faint gold halo */
.theme-lens .banner {
  border: 0;
  border-radius: 14px;
  margin: 0.4rem 0 0;
  box-shadow: 0 0 0 1px #c9a227, 0 0 0 5px #000, 0 0 0 6px rgba(201, 162, 39, 0.45), 0 18px 50px rgba(201, 162, 39, 0.14);
}
.theme-lens .lens-bar {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 1.6rem 0 2rem; padding: 0.45rem 0;
  border-top: 1px solid rgba(201, 162, 39, 0.5); border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem;
}
.theme-lens .lens-bar svg { flex: none; }

.theme-lens h1 { color: var(--gold-hi); font-size: 2.3rem; letter-spacing: 0.005em; }
.theme-lens .tag {
  display: inline-flex; margin: 0.3rem 0 1.5rem; font-size: 0.68rem; line-height: 1;
  letter-spacing: 0.12em; box-shadow: inset 0 0 0 1px var(--accent);
}
.theme-lens .tag span { padding: 0.36rem 0.6rem; }
.theme-lens .tag .k { color: var(--accent); }
.theme-lens .tag .v { background: var(--accent); color: #0b0b0c; font-weight: 700; }
.theme-lens .lead { color: var(--ink); font-size: 1.15rem; font-style: italic; }

/* Section headings: small gold capitals over a hairline */
.theme-lens h2 {
  color: var(--accent); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); margin-top: 2.5rem;
}
.theme-lens main p, .theme-lens main li { color: #d9d2bd; }
.theme-lens ul li::marker { color: var(--accent); }

/* Topics as two framed entries */
.theme-lens .topics { list-style: none; padding: 0; display: grid; gap: 1rem; }
.theme-lens .topics li {
  margin: 0; padding: 1rem 1.2rem 0.4rem;
  background: rgba(17, 17, 18, 0.9);
  box-shadow: inset 0 0 0 1px var(--line);
}
.theme-lens .topics h3 { color: var(--gold-hi); font-size: 1.2rem; margin-bottom: 0.2rem; }
.theme-lens .topics .count { display: block; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.6rem; }
.theme-lens .topics p { font-size: 0.98rem; }

.theme-lens .note { background: rgba(17, 17, 18, 0.9); border: 0; border-left: 2px solid var(--accent); border-radius: 0; color: var(--dim); }
.theme-lens .note p { color: var(--dim); }

/* Repo link in the card's style: caps, underline, arrow */
.theme-lens .gold-link {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.6); padding-bottom: 0.2rem;
}
.theme-lens .gold-link::after { content: "  \2192"; white-space: pre; }
.theme-lens .gold-link:hover { text-decoration: none; border-color: var(--accent-soft); }

.theme-lens .credits { font-size: 0.88rem; color: var(--dim); }
.theme-lens .back a, .theme-lens .site-footer a { color: var(--dim); }

@media (max-width: 640px) {
  .theme-lens h1 { font-size: 1.8rem; }
}

/* Chart in a dark frame (the image has a white background and is shown unaltered) */
.theme-lens .chart { margin: 0.6rem 0 1rem; padding: 0.7rem; background: #050505; box-shadow: inset 0 0 0 1px var(--line); border-radius: 8px; }
.theme-lens .chart img { display: block; width: 100%; height: auto; border-radius: 4px; }
.theme-lens .link-list { padding-left: 1.2rem; }
.theme-lens .link-list li { margin-bottom: 0.35rem; }
