body, td, th {
  font-family: 'Open Sans', sans-serif;
}
h2 {
  margin-top: 3ex;
}

.nd-pageheader {
  padding: 2rem 15px;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
  background-color: #1a1a2e;
}

.nd-pageheader a {
  color: #e4f1fe;
}

.nd-pageheader .container {
  position: relative;
}

.nd-pageheader address {
  font-weight: 300;
}

.nd-pageheader p, .nd-pageheader h1 {
  margin-bottom: 0.75rem;
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.3;
}

.nd-pagefooter {
  color: white;
  margin-top: 1.5rem;
  padding: 1rem;
  text-align: center;
  background-color: #1a1a2e;
}

.nd-pagefooter a {
  color: #e4f1fe;
}

@media (min-width: 576px) {
  .nd-pageheader {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-bottom: 3rem;
  }
}

@media (min-width: 768px) {
  .nd-pageheader p, .nd-pageheader h1 {
    font-size: 2.5rem;
  }
}

.section-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.architecture-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.architecture-box h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.architecture-box code {
  color: #1a1a2e;
  background: #e9ecef;
  padding: 1px 4px;
  border-radius: 3px;
}

.architecture-box.scaffold-link {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.architecture-box.scaffold-link:hover {
  border-color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scaffold-file-link {
  color: #0066cc;
  cursor: pointer;
  text-decoration: underline;
}

.scaffold-file-link:hover {
  color: #004499;
}

.bot-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.bot-card .bot-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.bot-card .bot-email {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.bot-card .bot-email a {
  color: #0066cc;
}

.bot-card .bot-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.paradigm-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.paradigm-step .step-icon {
  font-size: 2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

pre.code-block {
  background: #1a1a2e;
  color: #e4f1fe;
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  overflow-x: auto;
}

/* Scaffold modal styles */
.scaffold-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.scaffold-modal-content {
  background: white;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.scaffold-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #dee2e6;
  background: #1a1a2e;
  color: white;
  border-radius: 8px 8px 0 0;
  font-family: monospace;
  font-size: 1.1rem;
}

.scaffold-close {
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
}

.scaffold-close:hover {
  opacity: 1;
}

.scaffold-body {
  padding: 1.5rem;
  overflow-y: auto;
  line-height: 1.6;
}

.scaffold-body h1 {
  font-size: 1.5rem;
  margin-top: 0;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.scaffold-body h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

.scaffold-body h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
}

.scaffold-body code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.scaffold-body pre {
  background: #1a1a2e;
  color: #e4f1fe;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

.scaffold-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.scaffold-body ul, .scaffold-body ol {
  padding-left: 1.5rem;
}

.scaffold-body blockquote {
  border-left: 3px solid #dee2e6;
  padding-left: 1rem;
  margin-left: 0;
  color: #666;
}

/* Hover preview popup */
.hover-popup {
  position: fixed;
  width: 360px;
  max-height: 300px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
}

.hover-popup-header {
  background: #1a1a2e;
  color: white;
  padding: 0.5rem 1rem;
  font-family: monospace;
  font-size: 0.95rem;
}

.hover-popup-body {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  max-height: 240px;
  overflow: hidden;
}

.hover-popup-body h1 { font-size: 1.1rem; margin-top: 0; }
.hover-popup-body h2 { font-size: 1rem; margin-top: 0.75rem; }
.hover-popup-body h3 { font-size: 0.95rem; }
.hover-popup-body code { background: #f0f0f0; padding: 1px 4px; border-radius: 3px; font-size: 0.85em; }
.hover-popup-body pre { background: #1a1a2e; color: #e4f1fe; padding: 0.5rem; border-radius: 4px; font-size: 0.8em; overflow: hidden; }
.hover-popup-body pre code { background: none; color: inherit; }

.hover-preview:hover {
  border-color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Prompt assembly section */
.prompt-assembly {
  margin: 1.5rem 0;
}

.prompt-toggle {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.prompt-toggle:hover {
  background: #e9ecef;
}

.prompt-detail {
  margin-bottom: 1rem;
}

.prompt-detail .code-block {
  font-size: 0.82rem;
  line-height: 1.5;
}
