/* PDF card mode now renders the canonical `.link-list__entry` "file
   row" markup (defined site-wide in `assets/css/blocks.css`), so this
   file only carries the inline-iframe styles. The card inherits its
   plate look from the shared component — same visual as link-list
   rows and news-single attached files.

   As a page_blocks block the vertical rhythm comes from
   `.content-with-title__wrapper`, but via the [pdfjs-viewer] shortcode
   inside the_content (news posts) there's no such wrapper, so several
   cards/embeds in a row would touch. Give the wrappers their own
   vertical margin to keep them apart in that context. */
.universalis-pdf-card-wrap,
.universalis-pdf-inline {
    margin: 0.75rem 0;
}

/* In a block (page_blocks) the viewer sits inside .content-with-title__wrapper.
   With the block title off it's the first child — drop its top margin so there
   is no gap above it. */
.content-with-title__wrapper > .universalis-pdf-card-wrap:first-child,
.content-with-title__wrapper > .universalis-pdf-inline:first-child {
    margin-top: 0;
}

/* Inline mode — straightforward iframe wrapper. Width is set on the
   wrapper so editors can centre/constrain via the shortcode without
   dealing with iframe sizing quirks; height passes through to the
   iframe directly. */
.universalis-pdf-inline__frame {
    display: block;
    width: 100%;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
    background: var(--c-surface-soft, #fafafa);
}
