/* Button (inline, in the page). It carries the classes "wp-block-button__link wp-element-button", so a block theme
   such as Twenty Twenty-Five styles it like its own buttons. The rules below are only a fallback for themes that
   do not: :where() gives them zero specificity, so any theme style wins. Shape and alignment are the exceptions:
   the button is always fully rounded (override with --pcvg-button-radius, e.g. 8px for square-ish corners) and centered
   by default ([private_cv align="left"] or "right" to change). */
.pcvg-wrap{margin:1rem 0}
.pcvg-wrap[data-align="left"]{text-align:left}
.pcvg-wrap[data-align="center"]{text-align:center}
.pcvg-wrap[data-align="right"]{text-align:right}
:where(.pcvg-wrap .pcvg-open-btn){display:inline-block;border:0;padding:.75rem 1.4rem;background:#263b55;color:#fff;font:inherit;text-align:center;cursor:pointer}
:where(.pcvg-wrap .pcvg-open-btn:hover){filter:brightness(1.15)}
.pcvg-wrap .pcvg-open-btn{border-radius:var(--pcvg-button-radius,9999px)}

/* Overlay (moved to <body> by the script, so it covers the whole page). It is also the scroll container
   when the CV is bigger than the screen; the script sets the page's margins (centred on the device pixel grid). */
.pcvg-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999999;display:flex;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:56px 16px 16px;background:rgba(17,20,26,.82);font-family:inherit}
.pcvg-modal[hidden]{display:none}
.pcvg-modal *{box-sizing:border-box}
.pcvg-modal .pcvg-close{position:fixed;top:10px;right:10px;z-index:2;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:50%;background:var(--wp--preset--color--base,rgba(255,255,255,.95));color:var(--wp--preset--color--contrast,#222);font-size:26px;line-height:1;cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.45)}
.pcvg-modal .pcvg-close:focus-visible,.pcvg-modal .pcvg-download:focus-visible,.pcvg-modal .pcvg-zoom button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.pcvg-modal .pcvg-download{position:fixed;top:10px;left:10px;z-index:2;display:flex;align-items:center;gap:8px;height:40px;margin:0;padding:0 14px;border:0;border-radius:20px;background:var(--wp--preset--color--base,rgba(255,255,255,.95));color:var(--wp--preset--color--contrast,#222);font:inherit;font-size:14px;line-height:1;cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.45)}
.pcvg-modal .pcvg-download[hidden]{display:none}
.pcvg-modal .pcvg-download svg{flex:none}
@media(max-width:640px){.pcvg-modal .pcvg-download{width:40px;padding:0;justify-content:center}.pcvg-modal .pcvg-download-label{display:none}}
.pcvg-modal .pcvg-zoom{position:fixed;top:10px;left:50%;z-index:2;display:flex;gap:6px;transform:translateX(-50%)}
.pcvg-modal .pcvg-zoom[hidden]{display:none}
.pcvg-modal .pcvg-zoom button{height:40px;min-width:40px;margin:0;padding:0 12px;border:0;border-radius:20px;background:var(--wp--preset--color--base,rgba(255,255,255,.95));color:var(--wp--preset--color--contrast,#222);font:inherit;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.45)}
.pcvg-modal .pcvg-zoom .pcvg-zoom-reset{min-width:64px;font-size:14px}
.pcvg-modal .pcvg-zoom button:disabled{opacity:.45;cursor:default}
.pcvg-modal .pcvg-message{margin:auto;padding:0 1rem;color:#fff;text-align:center}
.pcvg-modal .pcvg-message[hidden]{display:none}
.pcvg-modal .pcvg-message.pcvg-error{color:#ffd7d5}
.pcvg-modal .pcvg-page-wrap{position:relative;flex:none;margin:0;background:#fff;box-shadow:0 8px 32px rgba(0,0,0,.45);overflow:hidden}
.pcvg-modal .pcvg-page-wrap[hidden]{display:none}
.pcvg-modal.pcvg-zoomed .pcvg-page-wrap{cursor:grab}
.pcvg-modal.pcvg-panning,.pcvg-modal.pcvg-panning *{cursor:grabbing!important;user-select:none}
.pcvg-modal .pcvg-stage{position:absolute;top:0;left:0;transform-origin:0 0;direction:ltr}
.pcvg-modal .pcvg-render{position:absolute;top:0;left:0;display:block;width:100%;height:100%}
.pcvg-modal .pcvg-text-layer{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;pointer-events:auto}
.pcvg-modal .pcvg-text-layer span{position:absolute;color:transparent;white-space:pre;transform-origin:0 0;cursor:text}
.pcvg-modal .pcvg-text-layer ::selection{background:rgba(0,100,220,.25)}
.pcvg-modal .pcvg-annotations{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}
.pcvg-modal .pcvg-annotations a{position:absolute;display:block;background:transparent;cursor:pointer;pointer-events:auto}
.pcvg-modal .pcvg-annotations a:focus{outline:2px solid #2463eb}
