/* shadow.css — minimal stylesheet for the static AI-shadow pages
   (about.html, methodology.html, data.html, results.html, glossary.html).
   These pages are not linked from the interactive Shiny UI; they exist
   only so that AI crawlers (GPTBot, ClaudeBot, PerplexityBot,
   Google-Extended, Bingbot, etc.) and traditional search engines see
   full content rather than the JS-rendered Shiny shell. They mirror
   data already present in the live app; humans never reach them through
   the dashboard navigation. */

:root {
  --bg:        #0D1117;
  --bg-card:   #161B22;
  --border:    #30363D;
  --text:      #E6EDF3;
  --text-mute: #8B949E;
  --accent:    #58A6FF;
  --accent-2:  #79C0FF;
  --green:     #56D364;
  --purple:    #BC8CFF;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

header.shadow-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  background: var(--bg-card);
}

header.shadow-header .wrap {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.shadow-header .brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
}

header.shadow-header nav a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 13px;
  margin-left: 18px;
}

header.shadow-header nav a:hover { color: var(--accent); }

h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  color: var(--accent-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 6px;
  color: var(--text);
}

.lede {
  color: var(--text-mute);
  font-size: 16px;
  margin: 0 0 28px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 10px 0; }

ul, ol { padding-left: 22px; margin: 10px 0; }
li { margin: 4px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent-2);
  font-weight: 600;
  background: rgba(88, 166, 255, 0.04);
}

tr:hover td { background: rgba(255, 255, 255, 0.02); }

code {
  background: rgba(110, 118, 129, 0.18);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--accent-2);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  overflow-x: auto;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

blockquote {
  border-left: 3px solid var(--accent);
  margin: 16px 0;
  padding: 4px 16px;
  color: var(--text-mute);
  font-style: italic;
}

.meta {
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 8px;
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.callout strong { color: var(--accent-2); }

.kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px 16px;
  margin: 16px 0;
  font-size: 14px;
}

.kv dt { color: var(--text-mute); }
.kv dd { margin: 0; }

footer.shadow-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 28px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 12px;
}

footer.shadow-footer a { color: var(--text-mute); margin: 0 8px; }
footer.shadow-footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 640px) {
  main { padding: 24px 16px 60px; }
  h1 { font-size: 23px; }
  h2 { font-size: 18px; }
  .kv { grid-template-columns: 1fr; }
  table { font-size: 13px; }
  th, td { padding: 6px 8px; }
}
