.fma-official-documents {
  --fma-pdf-accent: #d4ac0d;
  color: inherit;
  margin: 1.5rem 0;
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-top: 4px solid var(--fma-pdf-accent);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.fma-official-documents__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .02em;
}
.fma-official-document + .fma-official-document {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.fma-official-document__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.fma-official-document__top h3 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.35;
}
.fma-official-document__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: var(--fma-pdf-accent);
  color: #111 !important;
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none !important;
}
.fma-official-document__button:hover,
.fma-official-document__button:focus-visible { filter: brightness(.94); }
.fma-official-document__preview {
  overflow: hidden;
  width: 100%;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 8px;
  background: #fff;
}
.fma-official-document__preview iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 68vh, 760px);
  border: 0;
  background: #fff;
}
.fma-official-document__fallback {
  margin: .65rem 0 0;
  font-size: .9rem;
}
.fma-official-document__fallback a { text-decoration: underline; }
.fma-official-documents-editor {
  padding: 18px;
  border: 2px dashed #b38b00;
  border-radius: 8px;
  background: #f6f3e7;
  color: #1e1e1e;
}
.fma-official-documents-editor > strong { display:block; margin-bottom: 8px; }
.fma-official-documents-editor small { display:block; margin-top: 8px; opacity: .8; }
.fma-pdf-editor-item { margin: 12px 0; padding: 12px; border: 1px solid #ddd; border-radius: 6px; }
@media (max-width: 600px) {
  .fma-official-document__top { align-items: flex-start; flex-direction: column; }
  .fma-official-document__button { width: 100%; }
  .fma-official-document__preview iframe { height: 62vh; min-height: 300px; }
}
