html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.access-grid {
  background-image:
    linear-gradient(rgba(39, 111, 191, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 111, 191, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.focus-ring:focus-visible {
  outline: 3px solid rgba(39, 111, 191, 0.45);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Modern PDF content presentation */
#pdf-content {
  background:
    radial-gradient(circle at 8% 10%, rgba(39, 111, 191, 0.06), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #ffffff 100%);
}

#pdf-content > div > p.mb-12 {
  position: relative;
  margin-bottom: 3rem;
  padding: 1.5rem 1.6rem 1.5rem 1.85rem;
  border: 1px solid rgba(39, 111, 191, 0.14);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 47, 95, 0.07);
}

#pdf-content > div > p.mb-12::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  bottom: 1.35rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #276fbf, #183059);
}

#pdf-content article {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(15, 47, 95, 0.075);
}

#pdf-content article.mt-16 {
  margin-top: 2.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 2rem;
}

#pdf-content article::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(39, 111, 191, 0.08), transparent 68%);
  pointer-events: none;
}

#pdf-content article > h2 {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  padding-left: 1rem;
}

#pdf-content article > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, #276fbf, #183059);
}

#pdf-content article > img {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 45px rgba(15, 47, 95, 0.11);
}

#pdf-content .content-card {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid rgba(39, 111, 191, 0.12);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 28px rgba(15, 47, 95, 0.055);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

#pdf-content .content-card:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 111, 191, 0.24);
  box-shadow: 0 16px 38px rgba(15, 47, 95, 0.09);
}

#pdf-content .content-card > h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0 !important;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

#pdf-content .content-card > h3::before {
  content: "";
  width: 0.68rem;
  height: 0.68rem;
  flex: 0 0 0.68rem;
  border-radius: 0.22rem;
  background: linear-gradient(135deg, #276fbf, #183059);
  box-shadow: 0 0 0 5px rgba(39, 111, 191, 0.08);
}

#pdf-content .content-card > p {
  margin-top: 0.8rem !important;
}

#pdf-content article > ul,
#pdf-content .content-card > ul {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  list-style: none;
  border: 1px solid rgba(39, 111, 191, 0.1);
  border-radius: 1.25rem;
  background: rgba(248, 251, 255, 0.9);
}

#pdf-content article > ul li,
#pdf-content .content-card > ul li {
  position: relative;
  padding-left: 1.65rem;
}

#pdf-content article > ul li + li,
#pdf-content .content-card > ul li + li {
  margin-top: 0.65rem;
}

#pdf-content article > ul li::before,
#pdf-content .content-card > ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #276fbf;
  box-shadow: 0 0 0 4px rgba(39, 111, 191, 0.09);
}

#pdf-content article > p:not(.mb-12) {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  #pdf-content article {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  #pdf-content article.mt-16 {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  #pdf-content > div > p.mb-12 {
    padding: 1.2rem 1.2rem 1.2rem 1.45rem;
    border-radius: 1.25rem;
  }

  #pdf-content .content-card {
    padding: 1.1rem;
    border-radius: 1.15rem;
  }
}
