/* Article-local polish for /blog/how-to-split-pdf-online/ only.
   Do not edit shared style.css — overrides are scoped to .article-split-pdf. */

/* —— Hero product screenshot: remove obstructive shared floating cards —— */
body.article-detail-page .article-split-pdf .article-hero-media {
  position: relative !important;
  overflow: hidden !important;
  padding: clamp(0.55rem, 1vw, 0.8rem) !important;
}

body.article-detail-page .article-split-pdf .article-hero-media::before,
body.article-detail-page .article-split-pdf .article-hero-media::after,
body.article-detail-page .article-split-pdf .article-hero-media:before,
body.article-detail-page .article-split-pdf .article-hero-media:after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  background: none !important;
  border: 0 !important;
  animation: none !important;
}

body.article-detail-page .article-split-pdf .article-hero-media picture {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #ffffff !important;
}

body.article-detail-page .article-split-pdf .article-hero-media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
}

/* —— Hero metadata / Copy link row —— */
html:not([data-theme="dark"]) body.article-detail-page .article-split-pdf .article-meta-line,
html[data-theme="light"] body.article-detail-page .article-split-pdf .article-meta-line,
body.article-detail-page .article-split-pdf .article-meta-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin: 0.85rem 0 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.article-detail-page .article-split-pdf .article-meta-line span,
body.article-detail-page .article-split-pdf .article-meta-line .copy-link-button {
  min-height: 40px !important;
  padding: 0.48rem 0.78rem !important;
}

/* —— Comparison table readability —— */
body.article-detail-page .article-split-pdf .comparison-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 1.25rem !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbeafe !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08) !important;
}

body.article-detail-page .article-split-pdf .comparison-table {
  width: 100% !important;
  min-width: 560px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
}

body.article-detail-page .article-split-pdf .comparison-table th,
body.article-detail-page .article-split-pdf .comparison-table td {
  padding: 1.05rem 1.25rem !important;
  line-height: 1.6 !important;
  text-align: left !important;
  vertical-align: top !important;
  border-bottom: 1px solid #e2e8f0 !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

body.article-detail-page .article-split-pdf .comparison-table th {
  background: linear-gradient(135deg, #dbeafe, #eef2ff) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
}

body.article-detail-page .article-split-pdf .comparison-table td {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #334155 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

body.article-detail-page .article-split-pdf .comparison-table td:first-child,
body.article-detail-page .article-split-pdf .comparison-table th:first-child {
  width: 22% !important;
  min-width: 7.5rem !important;
  font-weight: 800 !important;
  color: #1d4ed8 !important;
  white-space: nowrap;
}

body.article-detail-page .article-split-pdf .comparison-table tr:last-child td {
  border-bottom: 0 !important;
}

@media (max-width: 760px) {
  body.article-detail-page .article-split-pdf .comparison-table {
    min-width: 480px !important;
  }

  body.article-detail-page .article-split-pdf .comparison-table th,
  body.article-detail-page .article-split-pdf .comparison-table td {
    padding: 0.8rem 0.9rem !important;
    font-size: 0.9rem !important;
  }

  body.article-detail-page .article-split-pdf .article-meta-line {
    gap: 0.45rem !important;
  }
}

html[data-theme="dark"] body.article-detail-page .article-split-pdf .comparison-table-wrap {
  border-color: rgba(96, 165, 250, 0.28) !important;
  background: linear-gradient(180deg, #0f172a, #111c33) !important;
}

html[data-theme="dark"] body.article-detail-page .article-split-pdf .comparison-table th {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(99, 102, 241, 0.22)) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] body.article-detail-page .article-split-pdf .comparison-table td {
  background: transparent !important;
  color: #cbd5e1 !important;
  border-bottom-color: rgba(96, 165, 250, 0.18) !important;
}

html[data-theme="dark"] body.article-detail-page .article-split-pdf .comparison-table td:first-child,
html[data-theme="dark"] body.article-detail-page .article-split-pdf .comparison-table th:first-child {
  color: #93c5fd !important;
}

/* —— CTA click stability (Open ToolsLuv Split PDF) ——
   Reproduced root cause (shared css/style.min.css — not modified):
   1) js/main.js injects span.button-ripple on .btn click (size ≈ max(w,h)*1.8).
   2) Shared rule `.btn svg, .btn span { position: relative }` beats
      `.button-ripple { position: absolute }` (higher specificity).
   3) The ripple therefore enters normal flow and expands the CTA
      (~239×52 → ~484×461) and its parent card for ~300ms.
   Neutralize ripples and geometry-shifting transforms for this article's
   Split PDF CTAs only. Preserve gradient identity + hover/focus feedback. */

body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary {
  --magnetic-x: 0px !important;
  --magnetic-y: 0px !important;
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  will-change: auto !important;
  transition:
    box-shadow 0.28s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)),
    border-color 0.28s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)),
    background 0.28s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)),
    filter 0.28s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)),
    color 0.28s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)) !important;
}

body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary:hover,
body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary:active,
body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary:focus,
body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary:focus-visible,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary:hover,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary:active,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary:focus,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary:focus-visible {
  transform: none !important;
  translate: none !important;
  scale: none !important;
}

body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary:hover,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary:hover {
  filter: brightness(1.06) !important;
  box-shadow:
    0 10px 28px rgba(59, 130, 246, 0.32),
    0 0 36px rgba(124, 58, 237, 0.22) !important;
}

body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary:active,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary:active {
  filter: brightness(0.98) !important;
  box-shadow:
    0 6px 18px rgba(59, 130, 246, 0.2),
    inset 0 2px 6px rgba(15, 23, 42, 0.22) !important;
}

body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary:focus-visible,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9) !important;
  outline-offset: 3px !important;
}

/* Keep label above shimmer; do not let ::before cover text */
body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary::before,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary::before {
  z-index: -1 !important;
  pointer-events: none !important;
  inset: 0 !important;
  transform: none !important;
}

/*
  Critical: shared `.btn span { position:relative }` would still pull any
  surviving ripple into flow. Force absolute + neutralize visual fill.
*/
body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary .button-ripple,
body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary .ripple,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary .button-ripple,
body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary .ripple {
  position: absolute !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary,
  body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary,
  body.article-detail-page .article-split-pdf .article-inline-cta a.btn.primary::before,
  body.article-detail-page .article-split-pdf .article-tool-cta a.btn.primary::before {
    transition: none !important;
    animation: none !important;
  }
}
