/* Shared design system for the three Shenzhen entity sites.
   Copied into each site at build time by sites/build.py.
   Deliberately small: these pages are read by machines as often as by people,
   so structure and contrast matter more than ornament. */

:root {
  --ink: #0f1720;
  --ink-soft: #47566b;
  --line: #dfe5ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --accent: #0a4fa0;
  --accent-soft: #e8f0fb;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9eef5;
    --ink-soft: #a3b1c4;
    --line: #27313f;
    --bg: #0d1219;
    --bg-soft: #141b25;
    --accent: #6fa8ee;
    --accent-soft: #16233a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  margin-bottom: 2.5rem;
}
header.site .wrap { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
header.site a.brand { font-weight: 650; text-decoration: none; color: var(--ink); }
header.site nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
header.site nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; }
header.site nav a:hover { color: var(--accent); text-decoration: underline; }

h1 { font-size: 2.05rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h2 { font-size: 1.32rem; line-height: 1.3; margin: 2.75rem 0 0.85rem; letter-spacing: -0.01em; }
h3 { font-size: 1.06rem; margin: 1.9rem 0 0.6rem; }

/* The lede answers the H1 immediately. LLMs and readers both take the first
   sentence after a heading as the answer, so it is styled to earn that. */
p.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 1.6rem; }

p { margin: 0 0 1.05rem; }
a { color: var(--accent); }

/* Attribute-value pairs. The core entity-SEO unit on these pages: one fact,
   one value, one source, unambiguous to a parser. */
dl.facts {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 0.55rem 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
dl.facts dt { font-weight: 600; color: var(--ink-soft); font-size: 0.93rem; }
dl.facts dd { margin: 0; }
@media (max-width: 34rem) {
  dl.facts { grid-template-columns: 1fr; gap: 0.15rem; padding: 1rem 1.1rem; }
  dl.facts dd { margin-bottom: 0.75rem; }
}

figure { margin: 2rem 0; }
figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
figcaption { font-size: 0.89rem; color: var(--ink-soft); margin-top: 0.6rem; }

blockquote {
  margin: 1.6rem 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
}

/* Every non-obvious claim carries its source inline rather than in a footer,
   so a retrieval system sees claim and citation in the same block. */
.src { font-size: 0.87rem; color: var(--ink-soft); }
.src a { color: var(--ink-soft); }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-soft); font-size: 0.89rem; }
.scroll { overflow-x: auto; }

footer.site {
  margin-top: 4rem;
  padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer.site p { margin: 0 0 0.5rem; }

.updated { font-size: 0.87rem; color: var(--ink-soft); margin-bottom: 2rem; }
