@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --accent-color: #8b5cf6;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --border-color: #e2e8f0;
  --header-bg: #0f172a;
  --header-text: #ffffff;
  --nav-bg: #1e293b;
  --nav-hover: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.4;
  font-size: 16px;
  letter-spacing: 0.01em;
}

header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: var(--header-text);
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-color) 20%, 
    var(--accent-color) 50%, 
    var(--primary-color) 80%, 
    transparent 100%);
  opacity: 0.9;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 1.5rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.header-badge {
  display: inline-block;
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(10px);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  color: #ffffff;
}

header p {
  font-size: 1.05rem;
  font-weight: 400;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  text-align: justify;
  letter-spacing: 0.01em;
}
.main-nav {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color)) 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.nav-container::-webkit-scrollbar {
  height: 2px;
}

.nav-container::-webkit-scrollbar-track {
  background: transparent;
}

.nav-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
}

.nav-item {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0;
  transition: all 0.25s ease;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
}

.nav-item:hover::before {
  transform: scaleY(1);
}

.nav-item:hover::after {
  transform: scaleX(1);
}

.nav-item.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.nav-item.active::before {
  transform: scaleY(1);
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.nav-item.active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}
.content-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
main {
  flex: 2 1 0%;
  background: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

main h2 {
  padding-left: 0;
  margin-bottom: 1em;
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}

main h2:first-of-type {
  margin-top: 0;
}

pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 1px solid #374151;
  box-shadow: var(--shadow-md);
  margin: 1.25rem 0;
}

code {
  font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

main h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.25em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}
.sidebar {
  flex: 1 1 300px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  min-width: 280px;
  max-width: 340px;
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: sticky;
  top: 2rem;
}

.sidebar h2 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  border-left: none;
  padding-left: 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
}

.sidebar h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}
.dates-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.dates-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-primary);
  margin-bottom: 0.6rem;
  padding: 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  line-height: 1.4;
}

.dates-list li:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.dates-list .event {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
}

.dates-list .date {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  white-space: normal;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
/* Remove .dates-table styles if not used elsewhere */
.dates-table, .dates-table th, .dates-table td {
  all: unset;
}
section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  scroll-margin-top: 80px;
  position: relative;
  border-bottom: 2px solid var(--border-color);
}

section > * {
  text-align: justify;
}

section h2,
section h3,
section h4,
section h5,
section h6 {
  text-align: left;
}

section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0.6;
}

section:target {
  animation: highlightSection 1s ease-out;
}

@keyframes highlightSection {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(4, 120, 87, 0.05);
  }
  100% {
    background-color: transparent;
  }
}

h1, h2, h3 {
  color: var(--text-primary);
}

ul, ol {
  margin-left: 1.5rem;
  padding-left: 0.5rem;
}

ul li, ol li {
  margin-bottom: 0.7rem;
  line-height: 1.3;
  color: var(--text-secondary);
  text-align: justify;
}

ul li strong, ol li strong {
  color: var(--text-primary);
  font-weight: 600;
  display: inline-block;
  margin-right: 0.5rem;
}

main p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: justify;
  letter-spacing: 0.01em;
}

main ul li, main ol li {
  position: relative;
  padding-left: 0.5rem;
  text-align: justify;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

main ul li::marker {
  color: var(--primary-color);
  font-weight: 600;
}

main ol li::marker {
  color: var(--primary-color);
  font-weight: 600;
}
footer {
  background: var(--header-bg);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.editions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 1.5rem;
}
.editions-list li {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 0.6rem;
  padding: 0.85rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.editions-list li:last-child {
  margin-bottom: 0;
}

.editions-list li:hover {
  border-color: var(--primary-color);
}

.editions-list a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  white-space: nowrap;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.editions-list a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dataset-card {
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.02) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.dataset-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.dataset-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.dataset-card p {
  margin-bottom: 0.65rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: justify;
  font-size: 0.98rem;
}

.dataset-card p:last-child {
  margin-bottom: 0;
}

.dataset-card strong {
  color: var(--text-primary);
  font-weight: 600;
}

.dataset-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  word-break: break-all;
}

.dataset-card a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.dataset-selection {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
  margin-top: 2rem;
}

.dataset-selection h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.dataset-selection p {
  margin-bottom: 0.65rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: justify;
  font-size: 0.98rem;
}

.dataset-selection ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.dataset-selection ul li {
  margin-bottom: 0.45rem;
  line-height: 1.3;
  color: var(--text-secondary);
  text-align: justify;
}

.task-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.02) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.task-header {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
}

.task-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.download-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  border: none;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
}

.download-button:hover {
  text-decoration: none;
  color: var(--text-primary);
}

.task-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.task-section h4:first-of-type {
  margin-top: 0;
}
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem auto;
  }
  .sidebar {
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 1.5rem;
    position: static;
  }
  main {
    padding: 1.5rem;
  }
  .header-content {
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  }
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  .nav-container {
    justify-content: flex-start;
  }
  .nav-item {
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 600px) {
  .header-content {
    padding: 1.25rem 1rem 1rem 1rem;
    text-align: center;
  }
  .header-badge {
    font-size: 0.7rem;
  }
  header h1 {
    font-size: 1.75rem;
  }
  header p {
    font-size: 0.95rem;
  }
  .nav-container {
    justify-content: flex-start;
  }
  .nav-item {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
  main {
    padding: 1.25rem 1rem;
  }
  main h2 {
    font-size: 1.3rem;
  }
  .sidebar {
    padding: 1.25rem 1rem;
  }
  .content-wrapper {
    padding: 0 1rem;
  }
} 