/* Blog article typography */

.blog-article {
  max-width: 42rem;
  width: 100%;
}

.blog-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.blog-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
  .blog-header h1 {
    font-size: 2.5rem;
  }
}

.blog-header time {
  font-size: 0.875rem;
  color: #64748b;
}

/* Content typography */

.blog h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid #e9d5ff;
}

.blog h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.blog p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: #334155;
}

.blog ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog li {
  line-height: 1.8;
  color: #334155;
  margin-bottom: 0.375rem;
}

.blog a {
  color: #7c3aed;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #c4b5fd;
}

.blog a:hover {
  color: #6d28d9;
  text-decoration-color: #7c3aed;
}

.blog strong {
  font-weight: 700;
  color: #0f172a;
}

.blog hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.5rem 0;
}

.blog img {
  border-radius: 0.5rem;
  margin: 1.5rem auto;
  max-width: 100%;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.blog blockquote {
  border-left: 4px solid #a855f7;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #faf5ff;
  border-radius: 0 0.375rem 0.375rem 0;
  color: #4c1d95;
  font-style: italic;
}

.blog table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog th,
.blog td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

.blog th {
  background: #faf5ff;
  color: #4c1d95;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e9d5ff;
}

.blog td {
  color: #334155;
  line-height: 1.6;
}

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

.blog tbody tr:nth-child(even) {
  background: #f8fafc;
}

@media (max-width: 640px) {
  .blog table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Series navigation box */

.series-nav {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.series-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem !important;
}

.series-nav ol {
  list-style-type: decimal;
  padding-left: 1.25rem;
  margin: 0 !important;
}

.series-nav li {
  font-size: 0.9375rem;
  margin-bottom: 0.3rem;
  color: #64748b;
}

.series-nav li.current-part {
  font-weight: 700;
  color: #1e293b;
}

.series-nav a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 400;
}

.series-nav a:hover {
  text-decoration: underline;
}

/* Spec / info highlight box */

.spec-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: 0.375rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.spec-box p {
  margin: 0 !important;
  color: #166534;
  font-size: 0.9375rem;
  line-height: 1.7;
}
