/* Article body: paragraphs, headings, lists — not header / hero / footer */

.pdf-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 1.25rem)
    clamp(4rem, 6vw, 5rem);
  color: #475569;
  font-size: 1.0625rem;
  line-height: 1.82;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 12%, #f8fafc 100%);
}

.pdf-intro {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.pdf-intro p {
  margin: 0 0 1rem;
  color: #334155;
  max-width: none;
}

.pdf-intro p:last-child {
  margin-bottom: 0;
}

.pdf-section {
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e8eef4;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.05);
  scroll-margin-top: 120px;
  border-bottom: none;
}

.pdf-section:has(details) {
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid #bae6fd;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #f0faff 52%, #eaf7ff 100%);
  box-shadow: 0 24px 70px rgba(6, 63, 104, 0.08);
}

.pdf-content h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.25;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  position: relative;
}

.pdf-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.5rem;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #09b8fd, #67d8ff, #087bff);
}

.pdf-section:has(details) h2::after {
  width: 5.75rem;
  height: 5px;
}

.pdf-content h3 {
  display: block;
  margin: 1.75rem 0 0.85rem;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 4px solid #09b8fd;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, #f0f9ff 0%, rgba(240, 249, 255, 0) 85%);
  color: #0c4a6e;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
}

.pdf-content p {
  margin: 1rem 0;
  color: #475569;
  max-width: 72ch;
}

.pdf-content p + h3,
.pdf-content ul + h3,
.pdf-content ol + h3 {
  margin-top: 2rem;
}

.pdf-content ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.625rem;
}

.pdf-content ul li {
  position: relative;
  margin: 0;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 1rem;
  line-height: 1.65;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdf-content ul li:hover {
  border-color: #bae6fd;
  box-shadow: 0 6px 20px rgba(8, 123, 255, 0.08);
}

.pdf-content ul li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #09b8fd, #087bff);
  box-shadow: 0 0 0 3px #e0f2fe;
}

.pdf-content ol {
  list-style: none;
  counter-reset: pdf-step;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.625rem;
}

.pdf-content ol li {
  counter-increment: pdf-step;
  position: relative;
  margin: 0;
  padding: 0.9rem 1rem 0.9rem 3.35rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.65;
}

.pdf-content ol li::before {
  content: counter(pdf-step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #09b8fd, #087bff);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
}

.pdf-content details ul,
.pdf-content details ol {
  margin: 0.75rem 0 0;
}

.pdf-content details ul li,
.pdf-content details ol li {
  padding: 0.65rem 0.75rem 0.65rem 2.25rem;
  font-size: 0.9375rem;
  background: #f8fafc;
}

.pdf-content details ul li::before {
  top: 1rem;
  left: 0.85rem;
  width: 6px;
  height: 6px;
}

.pdf-content details p {
  max-width: none;
}

@media (max-width: 640px) {
  .pdf-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .pdf-section {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .pdf-content h3 {
    font-size: 1.05rem;
    padding-left: 0.85rem;
  }

  .pdf-content ul li,
  .pdf-content ol li {
    padding-left: 2.5rem;
  }
}
