.pdf-preview-page {
  --pdf-deep: var(--green-900, #006b3c);
  --pdf-green: var(--green-700, #008f55);
  --pdf-accent: var(--accent, #83cb28);
  --pdf-page: var(--page, #f7faf8);
  --pdf-line: var(--line, #d4e8da);
  --pdf-ink: var(--ink, #143326);
  --pdf-muted: var(--muted, #527061);
  background: var(--pdf-page);
  color: var(--pdf-ink);
}

.pdf-preview-navbar {
  padding-inline: clamp(18px, 7vw, 96px);
}

.pdf-preview-navbar .nav a {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--soft-green, #eaf7ef);
  color: var(--pdf-deep);
}

.pdf-preview-container {
  max-width: 1320px;
  padding: clamp(20px, 4vw, 46px) clamp(18px, 7vw, 96px) 64px;
}

.pdf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 16px;
  max-width: 1120px;
  color: var(--pdf-muted);
  font-size: .92rem;
}

.pdf-breadcrumb a {
  color: var(--pdf-green);
  font-weight: 700;
  text-decoration: none;
}

.pdf-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdf-preview-shell {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--pdf-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 77, 43, .09);
  overflow: hidden;
}

.pdf-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3.5vw, 36px);
  border-bottom: 1px solid #e5f0e8;
}

.pdf-preview-heading {
  min-width: 0;
}

.pdf-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pdf-green);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.pdf-file-badge svg {
  width: 19px;
  height: 19px;
}

.pdf-preview-heading h2 {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--pdf-deep);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.pdf-preview-heading p {
  margin: 8px 0 0;
  color: var(--pdf-muted);
  line-height: 1.6;
}

.pdf-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 48px;
  padding: 11px 17px;
  border-radius: 10px;
  background: var(--pdf-green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 143, 85, .2);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pdf-download-button svg {
  width: 19px;
  height: 19px;
}

.pdf-download-button:hover {
  background: var(--pdf-deep);
  box-shadow: 0 12px 26px rgba(0, 92, 56, .25);
  transform: translateY(-1px);
}

.pdf-frame-wrap {
  padding: clamp(14px, 2vw, 24px);
  background: #edf4ef;
}

.pdf-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: min(76vh, 860px);
  border: 1px solid #c8dfcf;
  border-radius: 10px;
  background: #fff;
}

.pdf-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--pdf-muted);
  font-size: .9rem;
}

.pdf-fallback p {
  margin: 0;
}

.pdf-fallback a {
  color: var(--pdf-green);
  font-weight: 700;
}

.pdf-preview-page :focus-visible {
  outline: 3px solid var(--pdf-accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .pdf-preview-navbar {
    align-items: flex-start;
    gap: 12px;
  }

  .pdf-preview-navbar .logo {
    min-width: 0;
  }

  .pdf-preview-navbar .logo h1 {
    font-size: 18px;
  }

  .pdf-preview-navbar .logo span {
    font-size: 9px;
    letter-spacing: 1.7px;
  }

  .pdf-preview-navbar .logo-img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .pdf-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pdf-download-button {
    width: 100%;
  }

  .pdf-frame-wrap iframe {
    min-height: 68vh;
  }

  .pdf-fallback {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-download-button {
    transition: none;
  }

  .pdf-download-button:hover {
    transform: none;
  }
}
