/* Blog Post Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #374151;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 40px 140px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  min-height: 100vh;
}

article {
  user-select: text;
}

/* Typography */
h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.15;
  color: #111111;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 30px;
  font-weight: 700;
  margin-top: 64px;
  margin-bottom: 24px;
  color: #111111;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h3 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 24px;
  color: #111111;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h4 {
  font-size: 21px;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 20px;
  color: #1f2937;
  letter-spacing: -0.01em;
}

p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 28px;
  color: #374151;
}

/* Author info */
.author-info {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 64px;
  border-left: 2px solid #e5e7eb;
  padding-left: 20px;
  font-weight: 400;
}

.author-info div {
  margin-bottom: 6px;
}

.author-info div:last-child {
  margin-bottom: 0;
}

/* Lists */
ul {
  font-size: 18px;
  line-height: 1.75;
  margin-left: 32px;
  margin-bottom: 28px;
  color: #374151;
}

ul li {
  margin-bottom: 8px;
}

/* Dividers */
hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 64px 0;
}

/* Images */
figure {
  margin: 56px 0;
  text-align: center;
}

figure img,
figure video {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

figure img:hover,
figure video:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

figcaption {
  font-size: 14px;
  font-style: italic;
  margin-top: 20px;
  color: #6b7280;
  line-height: 1.6;
}

caption {
  font-size: 14px;
  font-style: italic;
  margin-top: 20px;
  color: #6b7280;
  line-height: 1.6;
  caption-side: top;
  padding-bottom: 16px;
  text-align: center;
}

/* Citations */
.citations-heading {
  font-size: 21px;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 32px;
  color: #6b7280;
  letter-spacing: 0;
}

.citations {
  font-size: 15px;
  line-height: 1.9;
  color: #6b7280;
}

.citations p {
  font-size: 15px;
  margin-bottom: 16px;
  color: #6b7280;
  line-height: 1.9;
}

/* Links */
a {
  color: #1890ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #40a9ff;
}

.citations a {
  border-bottom: 1px solid #91d5ff;
}

/* Citation numbers in text */
sup {
  font-size: 14px;
}

sup a {
  color: #1890ff;
  text-decoration: none;
}

.citation-back {
  font-size: 13px;
  color: #1890ff;
  margin-left: 4px;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-modal.active {
  display: flex;
  opacity: 1;
}
.image-modal img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.image-modal.active img {
  transform: scale(1);
}
.image-modal-close {
  position: absolute;
  top: 32px;
  right: 48px;
  color: #374151;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  user-select: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.image-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #111111;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.6;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

th {
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  color: #111827;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

th.center {
  text-align: center;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  text-align: center;
}

td.center {
  text-align: center;
}

td.canonical {
  color: #059669;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #f9fafb;
}

/* Simple alternating row colors instead */
tbody tr:nth-child(odd) {
  background: #fafbfc;
}

tbody tr:nth-child(even) {
  background: #ffffff;
}

/* Navigation Banner Styles */
.site-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 16px;
}
.nav-brand {
  font-weight: 700;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-link:hover {
  color: #000;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 60px 24px 100px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 26px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  h4 {
    font-size: 19px;
  }
  
  p, ul {
    font-size: 17px;
  }

  table {
    font-size: 13px;
  }

  th, td {
    padding: 10px 8px;
  }

  th {
    font-size: 12px;
  }
}
