:root {
  --pdf-ink: #102b4c;
  --pdf-navy: #071a37;
  --pdf-green: #087147;
  --pdf-red: #a92b33;
}

.police-pdf-page {
  min-height: calc(100vh - 84px);
  box-sizing: border-box;
  padding: clamp(14px, 2vw, 26px);
  background: radial-gradient(ellipse at 50% -28%, #244875 0, #102b4c 43%, #07172b 100%);
  color: #f7f9fc;
}

.police-pdf-card {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  box-shadow: 0 24px 65px rgba(0, 0, 0, .27);
  backdrop-filter: blur(16px);
}

.police-pdf-card::before,
.police-pdf-card::after {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: 3px;
  content: "";
}

.police-pdf-card::before { left: 0; background: var(--pdf-green); }
.police-pdf-card::after { right: 0; background: var(--pdf-red); }

.police-pdf-card__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  width: min(100%, 960px);
  margin: 0 auto 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.police-pdf-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  font: 750 12px/1.25 'Manrope', sans-serif;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.police-pdf-back > span:first-child { color: #a9d9bd; font-size: 18px; }
.police-pdf-back:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .1); }

.police-pdf-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  text-align: right;
}

.police-pdf-heading h1 {
  min-width: 0;
  margin: 0;
  color: #fff;
  font: 750 clamp(1.25rem, 2.3vw, 1.85rem)/1.2 'Playfair Display', Georgia, serif;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.police-pdf-viewer {
  width: min(100%, 900px);
  height: min(82vh, 1080px);
  height: min(82dvh, 1080px);
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 12px;
  background: #26364b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
}

.police-pdf-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e9edf3;
}

.police-pdf-back:focus-visible {
  outline: 3px solid #f1cf72;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .police-pdf-page { min-height: calc(100vh - 70px); padding: 10px; }
  .police-pdf-card { padding: 13px 11px; border-radius: 14px; }
  .police-pdf-card__header { grid-template-columns: 1fr; justify-items: stretch; gap: 11px; margin-bottom: 11px; padding-bottom: 11px; }
  .police-pdf-back { min-height: 40px; }
  .police-pdf-heading { justify-content: flex-start; gap: 11px; text-align: left; }
  .police-pdf-heading h1 { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .police-pdf-viewer { width: min(100%, 680px); height: min(76vh, 940px); height: min(76dvh, 940px); min-height: 420px; border-radius: 9px; }
}

@media (max-width: 380px) {
  .police-pdf-page { padding: 7px; }
  .police-pdf-card { padding: 11px 9px; }
  .police-pdf-viewer { min-height: 380px; }
}

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