/* PrepNovat in-post quiz CTA module (pn-qcta) v1
   Tokens copied from the hub mocks (free-tools/assets/tools.css, teas-hub t1). Every selector is
   prefixed .pn-qcta so nothing leaks into the theme or the .prose styles. Mobile-first. */
.pn-qcta {
  --pnq-ink: #0f172a; --pnq-body: #1e293b; --pnq-muted: #556072; --pnq-line: #e8e2d9;
  --pnq-card: #fffcf8; --pnq-primary: #2563eb; --pnq-primary-dark: #1d4ed8; --pnq-primary-soft: #eff6ff;
  --pnq-focus: 0 0 0 3px #fff, 0 0 0 5px #2563eb;
  box-sizing: border-box;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; align-items: start;
  margin: 32px 0; padding: 20px;
  background: linear-gradient(180deg, #fff 0%, var(--pnq-card) 100%);
  border: 1px solid var(--pnq-line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font: inherit; color: var(--pnq-ink); text-align: left;
}
.pn-qcta *, .pn-qcta *::before, .pn-qcta *::after { box-sizing: border-box; }
.pn-qcta .pn-qcta__badge { width: 40px; height: auto; display: block; margin: 2px 0 0; border-radius: 0; box-shadow: none; }
.pn-qcta .pn-qcta__body { min-width: 0; }
.pn-qcta .pn-qcta__title { margin: 0 0 4px; font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; color: var(--pnq-ink); }
.pn-qcta .pn-qcta__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--pnq-body); }
.pn-qcta .pn-qcta__actions { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 4px; }
.pn-qcta a.pn-qcta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 10px; border: 0;
  background: var(--pnq-primary); color: #fff !important; text-decoration: none !important;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25); transition: background-color .15s;
}
.pn-qcta a.pn-qcta__btn:hover { background: var(--pnq-primary-dark); }
.pn-qcta a.pn-qcta__btn .pn-qcta__arrow { font-weight: 700; }
.pn-qcta a.pn-qcta__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px;
  font-size: 15px; font-weight: 600; color: var(--pnq-primary-dark) !important; text-decoration: none !important;
}
.pn-qcta a.pn-qcta__link span { border-bottom: 1.5px solid rgba(37, 99, 235, 0.35); padding-bottom: 1px; }
.pn-qcta a.pn-qcta__link:hover span { border-bottom-color: var(--pnq-primary); }
.pn-qcta a:focus { outline: none; }
.pn-qcta a:focus-visible { outline: none; box-shadow: var(--pnq-focus); }
.pn-qcta a.pn-qcta__link:focus-visible { border-radius: 6px; }

/* (B) end-of-post: slightly bigger treatment */
.pn-qcta--end { grid-template-columns: 56px minmax(0, 1fr); padding: 24px; margin: 40px 0 32px; border-color: #ddd5c9; }
.pn-qcta--end .pn-qcta__badge { width: 56px; }
.pn-qcta--end .pn-qcta__title { font-size: 22px; }
.pn-qcta--end .pn-qcta__text { font-size: 16px; }

@media (min-width: 640px) {
  .pn-qcta { grid-template-columns: 48px minmax(0, 1fr); padding: 24px; gap: 4px 20px; }
  .pn-qcta .pn-qcta__badge { width: 48px; }
  .pn-qcta .pn-qcta__actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 16px; }
  .pn-qcta a.pn-qcta__btn { width: auto; }
  .pn-qcta--end { grid-template-columns: 72px minmax(0, 1fr); padding: 32px; gap: 4px 24px; }
  .pn-qcta--end .pn-qcta__badge { width: 72px; }
  .pn-qcta--end .pn-qcta__title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .pn-qcta a { transition: none; } }
@media (forced-colors: active) { .pn-qcta a.pn-qcta__btn { border: 2px solid ButtonText; } }
@media print { .pn-qcta { display: none; } }
