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

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: #fff;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.8;
}

nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

.nav-inner {
  max-width: 800px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 54px;
}

.nav-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; font-weight: 700; color: #111;
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: inherit; }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px; color: #6b7280; text-decoration: none;
}
.nav-links a:hover { color: #1d4ed8; }
.nav-links a.active { color: #1d4ed8; font-weight: 500; }

main {
  max-width: 800px; margin: 0 auto;
  padding: 56px 24px 100px;
}

/* Document header */
.doc-header {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e5e7eb;
}

.doc-header .pre-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #1d4ed8;
  margin-bottom: 12px;
}

.doc-header h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 32px; font-weight: 800; color: #0f172a;
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 16px;
}

.doc-header .subtitle {
  font-style: italic; color: #6b7280; font-size: 15px;
  margin-bottom: 16px;
}

.doc-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px; color: #9ca3af;
  display: flex; gap: 20px; align-items: center;
}

.doc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #d1d5db; }

/* Body content from pandoc */
.doc-body p {
  color: #374151;
  margin-bottom: 16px;
  font-size: 15px;
}

.doc-body > p:first-child strong {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #1d4ed8;
  margin-bottom: 4px;
}

/* Section headings — bold paragraphs acting as headings */
.doc-body p > strong:only-child {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; font-weight: 700; color: #0f172a;
  margin-top: 40px; margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.doc-body ul {
  margin: 8px 0 20px 0;
  padding-left: 0;
  list-style: none;
}

.doc-body ul li {
  color: #374151;
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 15px;
  border-bottom: none;
}

.doc-body ul li::before {
  content: "—";
  position: absolute; left: 0;
  color: #9ca3af;
  font-weight: 400;
}

.doc-body ul li p {
  margin-bottom: 0;
}

/* Tables */
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.doc-body thead tr {
  background: #f8fafc;
}

.doc-body th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.doc-body td {
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  vertical-align: top;
  line-height: 1.6;
}

.doc-body tr:nth-child(even) td { background: #f9fafb; }

/* Strong within paragraphs */
.doc-body p strong { color: #111827; }

/* Footer */
.doc-footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px; color: #9ca3af;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}

/* Index page */
.index-hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 40px;
}

.index-hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 36px; font-weight: 800; color: #0f172a;
  letter-spacing: -0.03em; margin-bottom: 10px;
}

.index-hero p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; color: #6b7280;
}

.doc-cards { display: flex; flex-direction: column; gap: 12px; }

.doc-card {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  background: white;
  transition: all 0.15s;
}

.doc-card:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 2px 16px rgba(29,78,216,0.07);
}

.doc-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; font-weight: 600; color: #0f172a;
  margin-bottom: 3px;
}

.doc-card p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px; color: #9ca3af; margin: 0;
}

.doc-card-arrow {
  font-size: 20px; color: #d1d5db;
  transition: all 0.15s;
}

.doc-card:hover .doc-card-arrow { color: #1d4ed8; transform: translateX(3px); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  main { padding: 32px 16px 60px; }
  .doc-header h1 { font-size: 24px; }
  .index-hero h1 { font-size: 26px; }
}

