/* Plavo brand tokens — mirrors mobile/src/theme/themes.js (light + dark) */
:root {
  color-scheme: light;
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-muted: #e0f7fa;
  --text: #0b1420;
  --text-secondary: #3d5660;
  --muted: #647e88;
  --primary: #0e7490;
  --primary-bright: #67e8f9;
  --accent: #0891b2;
  --border: #d1e8ee;
  --border-light: #e8f4f7;
  --link: #0e7490;
  --header-gradient: linear-gradient(135deg, #0b1420 0%, #0c4a5c 45%, #0e7490 100%);
  --wordmark: #52c9de;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1420;
    --surface: #121c28;
    --surface-muted: #151f2e;
    --text: #f0fafc;
    --text-secondary: #94b4be;
    --muted: #6e909c;
    --primary: #0e7490;
    --primary-bright: #67e8f9;
    --accent: #67e8f9;
    --border: #2c3e4e;
    --border-light: #1e2a38;
    --link: #67e8f9;
    --header-gradient: linear-gradient(135deg, #0b1420 0%, #0c4a5c 55%, #1a3d4a 100%);
    --wordmark: #67e8f9;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

header {
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--header-gradient);
  border-bottom: 1px solid var(--border);
  color: #f0fafc;
}

header .back-link {
  color: var(--primary-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

header .back-link:hover { text-decoration: underline; }

header h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wordmark);
}

header .meta {
  margin: 0;
  color: #94b4be;
  font-size: 0.95rem;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
}

main a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

main a:hover { text-decoration: underline; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(11, 20, 32, 0.06);
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

h2:first-child { margin-top: 0; }

p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

main > p:first-of-type { color: var(--text-secondary); }

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

.site-footer p { margin: 0 0 0.5rem; }

.site-footer .copyright {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.site-footer a { color: var(--link); font-weight: 600; }

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-card { margin-bottom: 1rem; }

.doc-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.doc-desc {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
}

.doc-cta {
  display: inline-block;
  font-weight: 600;
}
