/* Server-rendered content shared by the static SEO pages. */
.seo-content {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  color: #1f2937;
  font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.seo-content * { box-sizing: border-box; }
.seo-content h1, .seo-content h2, .seo-content h3 { color: #111827; line-height: 1.35; }
.seo-content h1 { font-size: 2rem; margin: 0 0 12px; }
.seo-content h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.seo-content h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.seo-content p, .seo-content li { max-width: 78ch; }
.seo-content a { color: #087443; text-decoration: underline; text-underline-offset: 2px; }
.seo-content a:hover { color: #045c35; }
.seo-nav, .seo-grid { display: grid; gap: 12px; }
.seo-nav { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 18px 0; }
.seo-nav a, .seo-card { border: 1px solid #dbe5df; border-radius: 8px; padding: 10px 12px; background: #f8fbf9; }
.seo-card { display: block; text-decoration: none; }
.seo-card strong { display: block; color: #111827; }
.seo-card span { color: #4b5563; font-size: .92rem; }
.seo-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.seo-content pre { overflow-x: auto; padding: 14px; border-radius: 8px; background: #f3f4f6; font-size: .9rem; }
.seo-content details { margin: 10px 0; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; }
.seo-content summary { cursor: pointer; font-weight: 600; }
.seo-note { padding: 14px 16px; border-left: 4px solid #18a058; background: #f0fdf4; }

/* Public-security filing link required on every public page. */
.beian-footer {
  display: flex;
  justify-content: center;
  padding: 24px 20px 32px;
  color: #6b7280;
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.beian-records { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.beian-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.beian-footer a:hover { color: #087443; text-decoration: underline; }
.beian-footer img { display: block; width: 18px; height: 20px; }

/* Keep long user input and generated code readable without horizontal scrolling. */
textarea {
  max-width: 100%;
  overflow-x: hidden !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.n-code,
.n-code pre,
.n-code .__code__,
[data-test-id="area-content"] {
  max-width: 100%;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.n-scrollbar-content:has([data-test-id="area-content"]) {
  width: 100% !important;
  min-width: 0 !important;
}

.jsonway-nested-view {
  margin: 18px 0 26px;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.jsonway-nested-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fbf9;
}
.jsonway-nested-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-weight: 600;
}
.jsonway-nested-toolbar button {
  border: 1px solid #18a058;
  border-radius: 5px;
  padding: 7px 12px;
  color: #087443;
  background: #fff;
  cursor: pointer;
}
.jsonway-nested-note {
  margin: 0;
  padding: 12px 16px 0;
  color: #667085;
  font-size: 13px;
}
.jsonway-nested-view pre {
  margin: 0;
  padding: 14px 16px 18px;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #263238;
  background: transparent;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.jsonway-nested-view.is-collapsed .jsonway-nested-note,
.jsonway-nested-view.is-collapsed pre {
  display: none;
}
@media (max-width: 640px) {
  .jsonway-nested-toolbar { align-items: flex-start; flex-direction: column; }
}
