/* Shared layout for QRazyQR content pages. The generator keeps its own styles in index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --border: #e2e8f0;
  --text: #1a1a2e;
  --text-medium: #4a5568;
  --text-light: #718096;
  --accent: #00d4aa;
  --accent-hover: #00b894;
  --accent-bg: rgba(0, 212, 170, 0.12);
  --dark: #1a1a2e;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(26, 26, 46, 0.08);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 740px; margin: 0 auto; padding: 1.25rem 1.5rem 2.5rem; }
a { color: var(--accent-hover); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.nav-brand:hover { text-decoration: none; color: var(--dark); }
.nav-brand svg { width: 28px; height: 28px; display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.nav-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--dark); background: var(--surface-alt); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--dark); background: var(--accent-bg); }

main { margin-bottom: 1rem; }
.kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-light); margin-bottom: 0.45rem; }
.kicker a { color: var(--accent-hover); text-decoration: none; font-weight: 600; }
h1 { font-size: 1.85rem; line-height: 1.25; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 0.75rem; }
.lede { font-size: 1.05rem; color: var(--text); margin-bottom: 1rem; }
.updated { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.25rem; }

.card, .guide-card, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 1.35rem 1.4rem 1.5rem; }
.prose h2 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; margin: 1.7rem 0 0.55rem; color: var(--text); }
.prose h3 { font-size: 1.02rem; font-weight: 650; margin: 1.25rem 0 0.4rem; color: var(--text); }
.prose p, .prose li { font-size: 0.98rem; color: var(--text-medium); }
.prose p { margin-bottom: 0.9rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code, .email-plain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.prose code { background: var(--surface-alt); padding: 0.12em 0.35em; border-radius: 4px; color: var(--text); }
.prose pre {
  background: var(--dark);
  color: #e7f7f2;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0.3rem 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1rem; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-alt); color: var(--text); font-weight: 600; }
.note {
  background: var(--accent-bg);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  margin: 0.4rem 0 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.guide-grid { display: grid; gap: 0.8rem; margin: 1rem 0 1.25rem; }
.guide-card { padding: 1rem 1.05rem; }
.guide-card h2 { font-size: 1.05rem; margin: 0 0 0.3rem; letter-spacing: -0.02em; }
.guide-card h2 a { color: var(--text); text-decoration: none; }
.guide-card h2 a:hover { color: var(--accent-hover); }
.guide-card p { color: var(--text-medium); font-size: 0.92rem; margin: 0; }

.related { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.05rem; margin-top: 0; }
.related ul { padding-left: 1.15rem; }

.email-plain {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--text);
  background: var(--surface-alt);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  margin: 0.2rem 0 0.8rem;
}

.missing { text-align: center; padding: 2.5rem 0 1.5rem; }
.missing .code { font-size: 3.2rem; font-weight: 700; letter-spacing: -0.04em; color: var(--accent-hover); }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  margin-top: 0.4rem;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1.4rem 0 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.85rem;
}
.footer-brand { font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.footer-tag { margin: 0.2rem 0 0.55rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.9rem; margin-bottom: 0.55rem; }
.footer-links a { color: var(--text-medium); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent-hover); }
.footer-copy { font-size: 0.8rem; }

@media (max-width: 560px) {
  .container { padding: 1rem 1rem 2rem; }
  h1 { font-size: 1.5rem; }
  .site-nav { flex-direction: column; align-items: flex-start; }
}
@media print {
  .site-nav, footer { display: none; }
  body { background: #fff; }
  .panel, .guide-card { box-shadow: none; }
}
