/* Shared CSS - common styles across all templates */

:root {
  --bg: #fafafa;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --card-bg: #ffffff;
  --border: #e5e5e7;
  --picker-bg: #e7e7e7;
  --picker-highlight: #cecece;
  --picker-border: #acacac;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --card-bg: #1c1c1e;
    --border: #38383a;
    --picker-bg: #272727;
    --picker-highlight: #404040;
    --picker-border: #525252;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

footer a {
  color: inherit;
}

footer p a {
  text-decoration: none;
  font-size: inherit;
}

@media (max-width: 600px) {
  footer {
    padding-top: 1.5rem;
  }
  footer nav {
    gap: 0.75rem 1rem;
  }
}

/* Back link */
.back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.back:hover {
  color: var(--text);
}

/* Disclaimer */
.disclaimer {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--text-secondary) 60%, transparent);
  margin-top: 0;
}

/* Container */
.container {
  max-width: 680px;
  margin: 0 auto;
}

/* Lists (scoped to .container to avoid affecting features grid etc.) */
.container ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.container ul li {
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.container ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: -0.46em;
  font-size: 2em;
  color: var(--text-secondary);
}

/* Paragraphs */
p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Headings */
h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
}

/* Tables */
.container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  background: var(--bg);
}

.container th,
.container td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.container th {
  font-weight: 600;
  color: var(--text);
}

.container td {
  color: var(--text-secondary);
}

.highlight-col {
  background: var(--card-bg);
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Blockquote */
blockquote {
  background: rgba(128, 128, 128, 0.1);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

blockquote p {
  margin: 0;
}

/* Links */
a {
  color: inherit;
}
