/* Standalone stylesheet for the static guide pages.
   These pages are plain HTML served straight from client/build, so they cannot
   use the hashed CRA bundle. React is not present to set data-theme either,
   so dark mode is driven by the OS preference. */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555555;
  --accent: #0b5ed7;
  --secondary-bg: #f6f8fa;
  --border: #d8dee4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1e1e;
    --text: #f5f5f5;
    --muted: #b8b8b8;
    --accent: #90caf9;
    --secondary-bg: #2c2c2c;
    --border: #444444;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.topbar {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.topbar a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.crumbs a {
  color: var(--muted);
}

h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.22;
  color: var(--accent);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.42rem;
  margin: 2.4rem 0 0.7rem;
  color: var(--accent);
}

h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.4rem;
}

p,
li {
  font-size: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
}

ol,
ul {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.5rem;
}

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

code {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.92em;
  font-family: Consolas, Monaco, "Courier New", monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

th {
  background: var(--secondary-bg);
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  margin: 1.25rem 0;
}

.note {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.faq-item h3 {
  margin-top: 0;
}

.related {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 2.5rem 0;
}

.related h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.related ul {
  margin-bottom: 0;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.9;
}

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