:root {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  color: #111827;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

header {
  padding: 8px 0 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.meta {
  font-size: 14px;
  color: #4b5563;
  display: grid;
  gap: 6px;
}

.metaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.selectorLabel {
  font-weight: 600;
  color: #111827;
}

.selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

select {
  font: inherit;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
}

.status {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #374151;
  font-size: 14px;
}

.status.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}

.toc {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px 14px;
  margin: 18px 0;
}

.tocTitle {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111827;
}

.tocList {
  margin: 0;
  padding-left: 18px;
  color: #111827;
}

.tocList li {
  margin: 6px 0;
}

#content {
  font-size: 16px;
  line-height: 1.6;
}

#content h2 {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.3;
}

#content h3 {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.3;
}

#content ul {
  padding-left: 20px;
}

#content a {
  color: #2563eb;
  text-decoration: underline;
}

footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 13px;
}

@media print {
  .status {
    display: none;
  }

  .metaRow {
    display: none;
  }

  a {
    color: #111827;
    text-decoration: none;
  }
}
