/* Shared styling for the public SkilledGuard pages.
 *
 * Kept in its own file rather than an inline <style> block so the
 * Content-Security-Policy these pages are served under can stay strict:
 * `style-src 'self'` with no `'unsafe-inline'` (see
 * backend/src/middleware.rs::security_headers). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1523;
  --muted: #5c5468;
  --accent: #7e14ff;
  --card: #f6f2ff;
  --border: #e2d9f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15111c;
    --fg: #f1ecfb;
    --muted: #b7abd1;
    --accent: #b98bff;
    --card: #1f1a2b;
    --border: #322a44;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header { margin-bottom: 32px; }

h1 {
  font-size: 1.75rem;
  margin: 0 0 4px;
}

.tagline { margin: 0; color: var(--muted); }

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

p, li { color: var(--fg); }

ul { padding-left: 1.25rem; }

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

code {
  background: var(--card);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

a { color: var(--accent); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th { color: var(--muted); font-weight: 600; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
