/* PDF Download Gate — see functions/pdf-gate.php
   The modal itself is styled by video-gate.css (same classes); this file only
   covers the CTA that replaces the post's own PDF link, the ready state, and the
   editor-only reset control. */

/* A <span> so it can sit inside the wpautop paragraph that held the original
   link without breaking it; block so it reads as its own CTA row. */
.synexis-dl {
  display: block;
  margin: 1.75rem 0;
}

/* button.btn.btn-filled--primary is already branded by the theme; these only
   undo the UA button defaults the anchor version never had. */
.synexis-dl__btn {
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

button.synexis-dl__btn {
  -webkit-appearance: none;
  appearance: none;
}

.synexis-dl__btn:focus-visible {
  outline: 2px solid #16292f; /* $primary-darker */
  outline-offset: 2px;
}

/* Download offered inside the modal after a successful submission. Kept as a
   link the visitor clicks — a script-opened window right after submit is blocked
   by every current browser. */
.synexis-pdf-gate__ready {
  margin: 1.5rem 0 0;
  text-align: center;
}

.synexis-pdf-gate__ready[hidden] {
  display: none;
}

/* Editor-only "Reset download gate" testing control — mirrors
   .synexis-video__reset so the two gates look the same in preview. */
.synexis-pdf-gate__reset {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.4;
  background: #f4f4f4;
  color: #16292f; /* $primary-darker */
  border: 1px solid #cfd6d8;
  border-radius: 2px;
  cursor: pointer;
}

.synexis-pdf-gate__reset:hover {
  background: #e6eaeb;
}

/* Finished state: the ask has been replaced by the outcome and the form wrapper
   is hidden, so the dialog is just a headline and the download. Tighten the gap
   that the removed form used to fill. */
.synexis-pdf-gate__modal.is-ready .synexis-video__form-intro {
  margin-bottom: 1rem;
}

.synexis-pdf-gate__modal.is-ready .contact-form--gravity[hidden] {
  display: none !important;
}
