/* The site's one stylesheet: BoozeTutor-support.html, support/<pack>.html and the Markdown pages (_layouts/default.html). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #0066cc;
  --border: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --surface: #1e1e1e;
    --text: #f0f0f0;
    --muted: #999;
    --accent: #4da6ff;
    --border: #333;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem 1rem;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

header {
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}

.btn:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.step-list {
  list-style: none;
  margin-bottom: 1rem;
}

.step-list li {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.2rem 0;
  padding-left: 1.4em;
  position: relative;
}

.step-list li::before {
  content: attr(data-n) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.langs {
  margin-top: 0.5rem;
}

.langs a {
  white-space: nowrap;   /* a language's name never breaks across lines (简体中文 did) */
}

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

/* Markdown pages rendered through _layouts/default.html (privacy policy, curriculum, image credits). */
.container.doc { max-width: 760px; }
.doc h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.doc h2 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.doc h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.4rem; }
.doc p, .doc ul, .doc ol { margin-bottom: 1rem; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc a { color: var(--accent); }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.doc table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 1rem; }
.doc th, .doc td { border: 1px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }

/* Apple's own App Store badges, unaltered, at their 40 px height; the white ones in dark mode. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.store-badges img {
  display: block;
  height: 40px;
  width: auto;
}
