/* style.css — стили ver3 (на основе ver2/index.html) */
body {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 1800px;
  margin: 0 auto;
  padding: 1rem;
  background: #f5f5f5;
  color: #2c3e50;
}
h1 { color: #2c3e50; }
h2 { color: #34495e; border-bottom: 2px solid #3498db; padding-bottom: 0.3rem; }
section {
  background: white;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
select, button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}
select { min-width: 340px; }
button {
  background: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
}
button:hover:not(:disabled) { background: #2980b9; }
button:disabled { background: #95a5a6; cursor: not-allowed; }

/* Три панели */
.panel-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 1200px) {
  .panel-3 { grid-template-columns: 1fr; }
}
.panel-3 > div {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  background: #fafafa;
  max-height: 600px;
  overflow: auto;
}
.panel-3 h3 {
  margin-top: 0;
  color: #7f8c8d;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.raw-md {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  background: #fdfdfd;
  color: #2c3e50;
  margin: 0;
}
pre {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
#log {
  background: #1a1a1a;
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  max-height: 340px;
  overflow-y: auto;
  padding: 1rem;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.markdown-view :is(h1,h2,h3) { margin-top: 0.5rem; }
.markdown-view pre { background: #ecf0f1; color: #2c3e50; }
.sparql-result table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.sparql-result th, .sparql-result td {
  border: 1px solid #ddd;
  padding: 0.4rem 0.6rem;
  text-align: left;
}
.sparql-result th { background: #ecf0f1; }
.hint { color: #7f8c8d; font-size: 0.9rem; }
  
/* ---- ver3 ---- */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.toolbar button { margin-left: 0; }
.pane-head { display: flex; gap: 0.4rem; align-items: center; margin-bottom: 0.5rem; }
.pane-head select { min-width: 0; flex: 1; font-size: 0.85rem; }
.pane-head button { margin-left: 0; font-size: 0.85rem; }
#sparql-code {
  width: 100%; box-sizing: border-box; min-height: 260px;
  font-family: 'Courier New', monospace; font-size: 0.85rem;
  background: #2c3e50; color: #ecf0f1; border-radius: 4px; padding: 0.8rem; border: none;
}
.markdown-body { background: white; padding: 1rem; font-size: 14px; }
.error { color: #e74c3c; }
#source-info { color: #7f8c8d; font-size: 0.9rem; }
