/* Prepared to Impact blog styles.
   Loaded AFTER /css/styles.css on /blog/ pages only. Reuses the site tokens
   (--pti-blue, --pti-blue-dark, --pti-blue-light, --pti-charcoal, --pti-gray,
   --pti-cream) and fonts (Inter body, Playfair Display headings).
   Source of truth: pti-blog-src/assets/blog.css (copied to /blog/blog.css on build). */

.bl-wrap { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.bl-wide { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

/* breadcrumb */
.bl-crumbs { font-size: 0.85rem; color: var(--pti-gray); padding-top: 2rem; }
.bl-crumbs a { color: var(--pti-gray); transition: color 0.2s; }
.bl-crumbs a:hover { color: var(--pti-blue); }
.bl-crumbs .sep { margin: 0 0.4rem; color: #c3cad1; }

/* tags / eyebrow */
.bl-tag {
  display: inline-block; background: var(--pti-blue-light); color: var(--pti-blue-dark);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
a.bl-tag:hover { background: var(--pti-blue); color: #fff; }

/* article head */
.bl-head h1 { font-size: 2.6rem; margin: 1rem 0 1.1rem; }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: 0.88rem; color: var(--pti-gray); padding-bottom: 1.5rem; border-bottom: 1px solid #eef1f4; }
.bl-byline { display: flex; align-items: center; gap: 0.6rem; color: var(--pti-charcoal); font-weight: 500; }
.bl-byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pti-blue-light); }
.bl-byline a:hover { color: var(--pti-blue); }

/* quick answer */
.bl-quick {
  background: var(--pti-blue-light); border-left: 4px solid var(--pti-blue);
  border-radius: 0 1rem 1rem 0; padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.bl-quick .label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pti-blue-dark); margin-bottom: 0.4rem; }
.bl-quick p { font-size: 1.08rem; line-height: 1.7; color: var(--pti-charcoal); margin: 0; }

/* banner */
.bl-banner { border-radius: 1rem; overflow: hidden; margin: 0 0 2.25rem; box-shadow: 0 10px 32px rgba(14, 94, 138, 0.12); background: var(--pti-blue-light); aspect-ratio: 1200 / 630; }
.bl-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--pti-blue-dark) 0%, var(--pti-blue) 100%); }

/* prose (Tailwind preflight strips defaults, so restore them here) */
.pti-prose { font-size: 1.06rem; line-height: 1.8; color: #3a4148; }
.pti-prose h2 { font-size: 1.75rem; margin: 2.6rem 0 0.9rem; line-height: 1.2; }
.pti-prose h3 { font-size: 1.3rem; margin: 2rem 0 0.6rem; line-height: 1.3; }
.pti-prose h4 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.pti-prose p { margin: 0 0 1.15rem; }
.pti-prose ul, .pti-prose ol { margin: 0 0 1.3rem; padding-left: 1.5rem; }
.pti-prose ul { list-style: disc; }
.pti-prose ol { list-style: decimal; }
.pti-prose li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.pti-prose li::marker { color: var(--pti-blue); font-weight: 600; }
.pti-prose a { color: var(--pti-blue-dark); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(27, 165, 212, 0.4); text-underline-offset: 3px; }
.pti-prose a:hover { color: var(--pti-blue); text-decoration-color: var(--pti-blue); }
.pti-prose strong { color: var(--pti-charcoal); font-weight: 600; }
.pti-prose blockquote { border-left: 4px solid var(--pti-blue); background: var(--pti-cream); padding: 1rem 1.4rem; border-radius: 0 0.75rem 0.75rem 0; margin: 0 0 1.3rem; font-style: italic; }
.pti-prose hr { border: 0; border-top: 1px solid #eef1f4; margin: 2rem 0; }
.bl-table { overflow-x: auto; margin: 0.5rem 0 1.6rem; border-radius: 0.75rem; box-shadow: 0 4px 20px rgba(14, 94, 138, 0.08); border: 1px solid rgba(14, 94, 138, 0.06); }
.pti-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; }
.pti-prose th { background: var(--pti-blue-dark); color: #fff; text-align: left; padding: 0.8rem 1rem; font-weight: 600; font-size: 0.88rem; }
.pti-prose td { padding: 0.75rem 1rem; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.pti-prose tr:last-child td { border-bottom: none; }
.pti-prose tr:nth-child(even) td { background: var(--pti-cream); }

/* inline consultation CTA (mirrors the site's CTA band) */
.bl-cta { background: var(--pti-cream); border: 1px solid rgba(14, 94, 138, 0.08); border-top: 4px solid var(--pti-blue); border-radius: 1rem; padding: 2rem 2rem 2.2rem; margin: 2.4rem 0; text-align: center; }
.bl-cta h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.bl-cta p { color: var(--pti-gray); margin: 0 auto 1.4rem; max-width: 34rem; }

/* FAQ: reuses the site's .faq details/summary accordion */
.bl-faq { margin-top: 3rem; }
.bl-faq h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }

/* sources */
.bl-sources { margin-top: 2.5rem; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; }
.bl-sources h3 { font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pti-gray); margin-bottom: 0.8rem; }
.bl-sources ol { list-style: decimal; padding-left: 1.3rem; font-size: 0.92rem; }
.bl-sources li { margin-bottom: 0.4rem; color: var(--pti-gray); }
.bl-sources a { color: var(--pti-blue-dark); font-weight: 500; word-break: break-word; }
.bl-sources a:hover { color: var(--pti-blue); text-decoration: underline; }

/* author box */
.bl-author { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.6rem; background: var(--pti-blue-light); border-radius: 1rem; }
.bl-author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; }
.bl-author .eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pti-blue-dark); }
.bl-author h3 { font-size: 1.2rem; margin: 0.15rem 0 0.4rem; }
.bl-author p { font-size: 0.93rem; color: #4a5560; line-height: 1.65; margin: 0; }
.bl-author a.more { display: inline-block; margin-top: 0.6rem; font-size: 0.88rem; font-weight: 600; color: var(--pti-blue-dark); }
.bl-author a.more:hover { color: var(--pti-blue); }

/* dates footer line */
.bl-dates { margin-top: 1.5rem; font-size: 0.82rem; color: var(--pti-gray); }

/* cards */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.bl-card { display: flex; flex-direction: column; background: #fff; border-radius: 1rem; overflow: hidden; border: 1px solid rgba(14, 94, 138, 0.06); box-shadow: 0 4px 20px rgba(14, 94, 138, 0.08); transition: all 0.3s ease; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(14, 94, 138, 0.14); }
.bl-card .img { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--pti-blue-light); }
.bl-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bl-card:hover .img img { transform: scale(1.04); }
.bl-card .body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.bl-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0.8rem 0 0.5rem; }
.bl-card p { font-size: 0.92rem; color: var(--pti-gray); line-height: 1.6; flex: 1; }
.bl-card .meta { margin-top: 1rem; font-size: 0.8rem; color: #8a949d; font-weight: 500; }

.bl-related { margin-top: 4rem; padding: 4rem 0; background: var(--pti-cream); }
.bl-related h2 { font-size: 1.9rem; text-align: center; margin-bottom: 0.5rem; }

/* featured (index) */
.bl-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; background: #fff; border-radius: 1.25rem; overflow: hidden; border: 1px solid rgba(14, 94, 138, 0.06); box-shadow: 0 4px 20px rgba(14, 94, 138, 0.08); margin-bottom: 3rem; transition: all 0.3s ease; }
.bl-featured:hover { box-shadow: 0 14px 36px rgba(14, 94, 138, 0.14); }
.bl-featured .img { min-height: 320px; background: var(--pti-blue-light); }
.bl-featured .img img { width: 100%; height: 100%; object-fit: cover; }
.bl-featured .body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.bl-featured h2 { font-size: 1.9rem; margin: 0.9rem 0 0.8rem; line-height: 1.2; }
.bl-featured p { color: var(--pti-gray); margin-bottom: 1.2rem; }
.bl-featured .more { color: var(--pti-blue-dark); font-weight: 600; }

.bl-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2rem; }
.bl-chips a { background: #fff; border: 1px solid #e5e7eb; color: var(--pti-charcoal); padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; transition: all 0.2s; }
.bl-chips a:hover, .bl-chips a.on { background: var(--pti-blue); border-color: var(--pti-blue); color: #fff; }

.bl-empty { text-align: center; color: var(--pti-gray); padding: 3rem 0; }

@media (max-width: 960px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-featured { grid-template-columns: 1fr; }
  .bl-featured .img { min-height: 220px; aspect-ratio: 1200 / 630; }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-featured .body { padding: 1.6rem; }
  .bl-featured h2 { font-size: 1.5rem; }
  .bl-cta { padding: 1.6rem 1.25rem; }
  .bl-author { flex-direction: column; }
  .pti-prose h2 { font-size: 1.5rem !important; }
}
