/* PanQuiz — Blog (index + article)
   Follows the site conventions: Raleway display / Open Sans body,
   navy #0e1552, primary #005aef, .section / .section-tint rhythm. */

/* ---------- Blog index ---------- */
.blog-hero { padding: 72px 0 16px; }
.blog-hero .section-sub { margin-top: 14px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(14, 21, 82, .10);
  border-radius: 18px;
  padding: 28px 28px 24px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14, 21, 82, .10);
}
.blog-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.blog-card-tag {
  font-family: var(--font-display, 'Raleway', sans-serif);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--site-primary, #005aef);
  margin: 0;
}
.blog-card-title {
  font-family: var(--font-display, 'Raleway', sans-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--site-navy, #0e1552);
  margin: 0 0 10px;
  text-wrap: pretty;
}
.blog-card-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #3c4257;
  margin: 0 0 18px;
}
.blog-card-meta {
  margin-top: auto;
  font-size: 14px;
  color: #6b7085;
}

/* ---------- Article ---------- */
.post-head { padding: 64px 0 8px; }
.post-breadcrumb {
  font-size: 14px;
  color: #6b7085;
  margin: 0 0 18px;
}
.post-breadcrumb a { color: #6b7085; text-decoration: none; }
.post-breadcrumb a:hover { color: var(--site-primary, #005aef); text-decoration: underline; }

.post-head h1 { text-align: left; }
.post-meta {
  font-size: 15px;
  color: #6b7085;
  margin: 16px 0 0;
}
.post-meta span + span::before { content: "·"; margin: 0 8px; }

/* Card images: shorter band on the index (source files stay full 1200×630) */
.blog-card-media {
  position: relative;
  margin: 0 0 14px;
}
.blog-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin: 0;
}
.blog-card-badge {
  flex-shrink: 0;
  font-family: var(--font-display, 'Raleway', sans-serif);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--site-primary, #005aef);
  color: #fff;
}
.blog-card[data-type="tool"] .blog-card-badge {
  background: var(--site-accent-yellow, #f3bc34);
  color: var(--site-navy, #0e1552);
}
.blog-card[data-type="hints"] .blog-card-badge {
  background: var(--site-accent-tomato, #ff6347);
  color: var(--site-navy, #0e1552);
}

/* Type filter pills */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.blog-pill {
  font-family: var(--font-display, 'Raleway', sans-serif);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(14, 21, 82, .18);
  background: #fff;
  color: var(--site-navy, #0e1552);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.blog-pill:hover,
.blog-pill:focus-visible {
  border-color: var(--site-primary, #005aef);
  color: var(--site-primary, #005aef);
}
.blog-pill.is-active {
  background: var(--site-primary, #005aef);
  border-color: var(--site-primary, #005aef);
  color: #fff;
}
.blog-filter + .blog-grid { margin-top: 24px; }
.blog-card.is-hidden { display: none; }
.post-hero { margin: 28px 0 0; max-width: 800px; }
.post-hero img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* Direct answer box (AEO): the quotable 2–3 sentence answer under the H1 */
.post-answer {
  max-width: 800px;
  margin: 32px 0 0;
  background: linear-gradient(180deg, rgba(0, 90, 239, .055) 0%, rgba(0, 90, 239, .035) 100%);
  border: 1px solid rgba(0, 90, 239, .16);
  border-left: 4px solid var(--site-primary, #005aef);
  border-radius: 14px;
  padding: 22px 28px;
  font-size: 17.5px;
  line-height: 1.7;
  color: #2b2f3a;
}
.post-answer strong { color: var(--site-navy, #0e1552); }

/* Body copy */
.post-content {
  max-width: 800px;
  font-size: 17.5px;
  line-height: 1.75;
  color: #2b2f3a;
}
.post-content > * + * { margin-top: 1.15em; }
.post-content h2 {
  font-family: var(--font-display, 'Raleway', sans-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  color: var(--site-navy, #0e1552);
  margin-top: 2em;
  scroll-margin-top: 110px; /* matches sticky header offset used on Pricing */
  text-wrap: pretty;
}
.post-content h3 {
  font-family: var(--font-display, 'Raleway', sans-serif);
  font-weight: 700;
  font-size: 21px;
  color: var(--site-navy, #0e1552);
  margin-top: 1.6em;
  scroll-margin-top: 110px;
}
.post-content a:not(.pq-site-btn) { color: var(--site-primary, #005aef); }
.post-content a.pq-site-btn, .post-content a.pq-site-btn span { color: #fff; }
.post-content ul, .post-content ol { padding-left: 1.3em; }
.post-content li + li { margin-top: .45em; }
.post-content img { max-width: 100%; height: auto; border-radius: 14px; }
.post-content blockquote {
  border-left: 4px solid var(--site-accent-yellow, #f3bc34);
  margin: 1.4em 0;
  padding: .3em 0 .3em 1.2em;
  color: #3c4257;
}

/* Comparison tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 1.4em 0;
}
.post-content th, .post-content td {
  border: 1px solid rgba(14, 21, 82, .14);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.post-content th {
  background: rgba(0, 90, 239, .06);
  font-family: var(--font-display, 'Raleway', sans-serif);
  font-weight: 700;
  color: var(--site-navy, #0e1552);
}
.table-scroll { overflow-x: auto; }

/* In-article CTA strip */
.post-cta {
  max-width: 800px;
  margin: 2.2em 0;
  background: linear-gradient(180deg, #f7f9ff 0%, #edf1ff 100%);
  border: 1px solid rgba(14, 21, 82, .10);
  border-radius: 18px;
  padding: 26px 30px;
}
.post-cta p { margin: 0 0 16px; font-size: 17px; color: #2b2f3a; }

/* Author / E-E-A-T box */
.post-author {
  max-width: 800px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 21, 82, .12);
  font-size: 15.5px;
  line-height: 1.65;
  color: #3c4257;
}
.post-author strong { color: var(--site-navy, #0e1552); }

/* Article layout container */
.post-wrap { max-width: 800px; margin: 0 auto; }

@media (max-width: 720px) {
  .post-content { font-size: 16.5px; }
  .post-content h2 { font-size: 24px; }
  .blog-grid { margin-top: 36px; }
}
