.zsh-newsletter { margin: 0 0 1.15rem; }
a.zsh-newsletter-link { text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
a.zsh-newsletter-link:hover { text-decoration-thickness: 2px; }
a.zsh-newsletter-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.zsh-pdf-preview { position: fixed; z-index: 100000; width: 274px; max-width: calc(100vw - 24px); max-height: min(440px, calc(100vh - 24px)); overflow: auto; padding: 12px; box-sizing: border-box; background: #fff; color: #222; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 8px 35px #0003; font: 14px/1.5 system-ui, sans-serif; }
.zsh-pdf-preview[hidden] { display: none; }
.zsh-pdf-preview canvas { display: block; max-width: 100%; height: auto !important; }
.zsh-pdf-preview small { display: block; margin-top: 8px; }
dialog.zsh-pdf-dialog { width: min(1100px, calc(100vw - 40px)); height: min(900px, calc(100dvh - 40px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 12px; background: #fff; color: #222; box-shadow: 0 15px 70px #0005; overflow: hidden; font: 16px/1.5 system-ui, sans-serif; }
dialog.zsh-pdf-dialog[open] { display: flex; flex-direction: column; }
.zsh-pdf-dialog::backdrop { background: #0009; }
.zsh-pdf-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #ddd; }
.zsh-pdf-header h2 { margin: 0; padding: 0; font: 600 20px/1.3 system-ui, sans-serif; text-transform: none; overflow-wrap: anywhere; }
.zsh-pdf-header h2::after { display: none; }
.zsh-pdf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; }
.zsh-pdf-dialog button, .zsh-pdf-toolbar a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 6px 12px; border: 1px solid #ccc; border-radius: 5px; background: #fff; color: #222; font: inherit; text-transform: none; letter-spacing: normal; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.zsh-pdf-header button { flex-shrink: 0; }
.zsh-pdf-dialog button:disabled { opacity: .4; cursor: default; }
.zsh-pdf-dialog button:hover:not(:disabled), .zsh-pdf-toolbar a:hover { background: #f1f1f1; }
.zsh-pdf-dialog :focus-visible { outline: 3px solid #2767a5; outline-offset: 2px; }
.zsh-pdf-toolbar [data-page] { min-width: 55px; text-align: center; }
.zsh-pdf-status { padding: 0 20px 10px; }
.zsh-pdf-status:empty { display: none; }
.zsh-pdf-pages { flex: 1; min-height: 0; overflow: auto; padding: 16px; background: #e9e9e9; overscroll-behavior: contain; }
.zsh-pdf-pages canvas { display: block; margin: 0 auto; max-width: none; background: white; box-shadow: 0 2px 8px #0002; }
@media (max-width: 600px) {
  dialog.zsh-pdf-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); border-radius: 8px; }
  .zsh-pdf-header { padding: 12px; gap: 8px; }
  .zsh-pdf-header h2 { font-size: 17px; }
  .zsh-pdf-toolbar { padding: 8px 12px; gap: 6px; }
  .zsh-pdf-toolbar a { font-size: 14px; }
}

/* Button groups follow the surrounding text edge by default. Explicit
   center/right/space-between alignment selected in WordPress remains available. */
body main .wp-block-buttons:not(.is-content-justification-center):not(.is-content-justification-right):not(.is-content-justification-space-between):not(.aligncenter):not(.alignright) {
  justify-content: flex-start;
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  text-align: left;
}
body main .wp-block-button .zsh-newsletter-link {
  text-decoration: none;
}
/* The theme's general cream button text is invisible on an outline button. */
body main .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
  color: var(--purple, #54205f) !important;
}

/* The preview action opens the same reader as the original link. */
.zsh-pdf-preview .zsh-preview-open, .zsh-cv-preview .zsh-preview-open {
 display:block;margin:10px 0 0;padding:8px 12px;border:1px solid #60256a;
 border-radius:5px;background:#fff;color:#60256a;font:inherit;text-align:left;
 cursor:pointer;line-height:1.4;
}
.zsh-pdf-preview .zsh-preview-open:hover, .zsh-cv-preview .zsh-preview-open:hover {background:#f5eef7;}
.zsh-preview-open:focus-visible {outline:2px solid #60256a;outline-offset:2px;}
