/* Shared stylesheet for statically generated SEO pages (see scripts/generate-seo.js). */
:root {
  --seo-bg: #ffffff;
  --seo-color: #14161a;
  --seo-muted: #5b6270;
  --seo-card-bg: #f7f7f8;
  --seo-border: rgba(0, 0, 0, 0.1);
  --seo-primary: #b8860b;
  --seo-primary-contrast: #14161a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --seo-bg: #12141a;
    --seo-color: #f2f3f5;
    --seo-muted: #9aa1ad;
    --seo-card-bg: #181b22;
    --seo-border: rgba(255, 255, 255, 0.08);
    --seo-primary: #f5c518;
    --seo-primary-contrast: #12141a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--seo-bg);
  color: var(--seo-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--seo-primary); }

.seo-header, .seo-footer {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--seo-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.seo-brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--seo-color);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.seo-breadcrumb {
  font-size: 0.85rem;
  color: var(--seo-muted);
  margin-bottom: 1rem;
}

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

h1 { font-size: 1.6rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }

table.seo-spec {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: var(--seo-card-bg);
  border: 1px solid var(--seo-border);
  border-radius: 8px;
  overflow: hidden;
}

table.seo-spec th, table.seo-spec td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--seo-border);
  font-size: 0.95rem;
}

table.seo-spec tr:last-child th, table.seo-spec tr:last-child td { border-bottom: none; }
table.seo-spec th { color: var(--seo-muted); font-weight: 500; width: 40%; }

.seo-diagram {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
}

.seo-cta {
  display: inline-block;
  margin: 1rem 0 1.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--seo-primary);
  color: var(--seo-primary-contrast);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}

.seo-faq-item {
  padding: 1rem 0;
  border-top: 1px solid var(--seo-border);
}

.seo-checklist,
.seo-steps {
  padding-left: 1.25rem;
  line-height: 1.6;
}

.seo-checklist li,
.seo-steps li {
  margin-bottom: 0.5rem;
}

.seo-source-note {
  font-size: 0.85rem;
  color: var(--seo-muted);
  margin-top: 2rem;
}

.seo-index-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.seo-index-list a {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--seo-card-bg);
  border: 1px solid var(--seo-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--seo-color);
  font-weight: 600;
}

.seo-ad-slot {
  margin: 1.5rem 0;
  padding: 0.75rem;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--seo-card-bg);
  border: 1px dashed var(--seo-border);
  border-radius: 8px;
  overflow: hidden;
}

.seo-ad-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--seo-muted);
  margin-bottom: 0.4rem;
}

.seo-disclosure {
  font-size: 0.85rem;
  color: var(--seo-muted);
}

.seo-affiliate-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.seo-affiliate-list a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: var(--seo-card-bg);
  border: 1px solid var(--seo-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--seo-color);
  font-weight: 600;
  font-size: 0.9rem;
}

