/* Additions on top of blog-v2.css (mockup copy) for the Ghost version. Keep blog-v2.css identical to the mockup. */

.pagination-gap {
  min-width: 24px;
  color: var(--muted);
  text-align: center;
}

/* Quiz close button: the mockup ships it unstyled; the × glyph is replaced with a drawn cross */
.dialog-close {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--ink);
  font-size: 0;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.dialog-close::before,
.dialog-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dialog-close:hover { border-color: var(--ink); background: var(--soft); }
.dialog-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.category-articles .pagination { margin: 40px 0 56px; }
@media (max-width: 760px) {
  .category-articles .pagination { margin: 32px 0 40px; }
}

/* Search results can be short: keep the footer at the bottom of the viewport */
body.blog-v2[data-route="search"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.blog-v2[data-route="search"] > #prototype-app {
  flex: 1 0 auto;
}

/* Quiz: live prices with discount from the dna-widget data */
.quiz-price-old {
  margin-left: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.quiz-price-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.quiz-alternative-grid .quiz-price {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
}

.quiz-alternative-grid .quiz-price .quiz-price-old {
  font-size: 12px;
}

.quiz-alternative-grid .quiz-price .quiz-price-badge {
  margin: 0 0 0 4px;
  color: #fff;
  font-size: 11px;
}

/* The topics heading belongs to step 1 only; later steps have their own headings */
.quiz-shell:has(> [data-quiz-step="topics"][hidden]) .quiz-head {
  justify-content: flex-end;
  margin-bottom: 0;
}

.quiz-shell:has(> [data-quiz-step="topics"][hidden]) .quiz-head > div {
  display: none;
}

.quiz-option:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.quiz-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.subscribe-form .button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.subscribe > .subscribe-success {
  align-self: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.feed-empty {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

/* Article page: content blocks that blog-v2-article.js moves into the header or removes */
body[data-route="article"] .article-rich .blog-author,
body[data-route="article"] .article-rich .blog-toc { display: none; }

.article-content .article-sources ol,
.article-rich .article-sources ol {
  margin: 0;
  padding: 0 0 0 18px;
  color: #9aa3b2;
}
.article-content .article-sources ol li::marker,
.article-rich .article-sources ol li::marker { font-size: 12px; }

.avatar--initials,
.expert-plaque__avatar--initials {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
}
.avatar--initials { font-size: 14px; }
.expert-plaque__avatar--initials { font-size: 16px; }
