/* Enhanced CSS for Scotland and Wales Regional Analysis Demo */
/* Clean typography and layout for geographic visualizations */

/* Base Typography and Layout */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
  margin: 0 auto;
  max-width: 900px;
  padding: 40px 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #2c3e50;
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

.big {
  font-size: 2.5em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  color: #34495e;
  margin: 2rem 0 1rem 0;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.small {
  font-size: 1.1rem;
  font-weight: 400;
  color: #7f8c8d;
  margin-top: 0;
  font-style: italic;
}

/* Paragraph */
p {
  margin-bottom: 1em;
  font-weight: 300;
  font-size: 1rem;
  color: #555;
}

/* Section Layout */
section {
  background: white;
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid #3498db;
}

section:nth-child(even) {
  border-left-color: #e74c3c;
}

section:nth-child(odd) {
  border-left-color: #2ecc71;
}

/* Chart Description */
.chart-description {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecf0f1;
}

.chart-description p {
  color: #555;
  margin: 0.5rem 0;
}

/* Figure Elements */
figure {
  margin: 2rem 0;
  padding: 1rem;
  background: #fafbfc;
  border-radius: 4px;
  border: 1px solid #e1e8ed;
  display: flex;
  justify-content: center;
}

/* Vega visualizations - thin borders */
.vega-embed {
  border: 1px solid #ddd !important;
  border-radius: 4px;
}

/* Code blocks */
pre {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.45;
  margin: 1rem 0;
}

code {
  background-color: #f6f8fa;
  border-radius: 3px;
  font-size: 85%;
  margin: 0;
  padding: 0.2em 0.4em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

pre code {
  background-color: transparent;
  border: 0;
  font-size: 100%;
  margin: 0;
  padding: 0;
  white-space: pre;
}

/* Links */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }
  
  .big {
    font-size: 2rem;
  }
  
  section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  figure {
    padding: 0.5rem;
  }
}
