/* marketing-blog.css: blog index, tag pages, post cards, and post polish */

/* Hero */
.gp-bl-hero { padding-top: 110px; padding-bottom: 34px; }
.gp-bl-h1 { max-width: 880px; margin: 18px auto 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; color: #0f172a; }
.gp-bl-lead { max-width: 720px; margin: 18px auto 0; font-size: 19px; line-height: 1.6; color: #475569; }

/* Topic chips */
.gp-bl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.gp-bl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.9); color: #334155; font-size: 14.5px; font-weight: 600; text-decoration: none;
    box-shadow: 0 0 0 1px rgba(15,23,42,.09); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.gp-bl-chip span { padding: 1px 7px; border-radius: 999px; background: #eef2f5; color: #64748b; font-size: 12px; }
.gp-bl-chip:hover { box-shadow: 0 0 0 1px rgba(14,116,144,.45); color: #0e7490; }
.gp-bl-chip.on { background: #0e7490; color: #fff; box-shadow: none; }
.gp-bl-chip.on span { background: rgba(255,255,255,.2); color: #fff; }
.gp-bl-chip-sm { padding: 5px 12px; font-size: 13px; margin: 2px; }

/* Grid of cards */
.gp-bl-list { padding-top: 18px; padding-bottom: 72px; }
.gp-bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gp-bl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-bl-grid.has-featured .gp-bl-card-featured { grid-column: span 2; grid-row: span 2; }

.gp-bl-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; background: #fff; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 0 0 1px rgba(15,23,42,.07); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.gp-bl-card:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -38px rgba(12,58,65,.55), 0 0 0 1px rgba(15,23,42,.09); }
.gp-bl-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef3f5; }
.gp-bl-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.gp-bl-card:hover .gp-bl-img img { transform: scale(1.035); }
.gp-bl-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.gp-bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-size: 13px; color: #64748b; }
.gp-bl-tag { position: relative; z-index: 2; padding: 3px 10px; border-radius: 999px; background: #e6f3f5; color: #0e7490; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.gp-bl-tag:hover { background: #d4ecf0; }
.gp-bl-title { margin: 12px 0 0; font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; color: #0f172a; }
.gp-bl-title a { color: inherit; text-decoration: none; }
/* The whole card is clickable through the title link */
.gp-bl-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 22px; }
.gp-bl-title a:focus-visible { outline: none; }
.gp-bl-card:has(.gp-bl-title a:focus-visible) { box-shadow: 0 0 0 3px rgba(14,116,144,.55); }
.gp-bl-excerpt { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: #475569; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Featured card */
.gp-bl-card-featured .gp-bl-body { padding: 26px 32px 30px; }
.gp-bl-card-featured .gp-bl-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.22; letter-spacing: -.02em; margin-top: 14px; }
.gp-bl-card-featured .gp-bl-excerpt { font-size: 17px; -webkit-line-clamp: 5; margin-top: 12px; }
.gp-bl-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.gp-bl-author img { width: 40px; height: 40px; border-radius: 50%; }
.gp-bl-author b { display: block; font-size: 14.5px; color: #0f172a; }
.gp-bl-author div span { display: block; font-size: 13px; color: #64748b; }
.gp-bl-read { position: relative; z-index: 2; margin-left: auto; font-size: 15px; font-weight: 600; color: #0e7490; text-decoration: none; white-space: nowrap; }
.gp-bl-read:hover { color: #0891b2; }

/* Pager */
.gp-bl-pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 44px; }
.gp-bl-pager-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #fff; color: #0f172a; font-size: 15px; font-weight: 600; text-decoration: none;
    box-shadow: 0 0 0 1px rgba(15,23,42,.12); transition: box-shadow .2s ease, color .2s ease; }
.gp-bl-pager-btn:hover { color: #0e7490; box-shadow: 0 0 0 1px rgba(14,116,144,.5); }
.gp-bl-pager-n { font-size: 14px; color: #64748b; }

/* Post page: reading polish */
.gp-bl-prose { font-size: 18px; line-height: 1.75; }
.gp-bl-prose h2 { margin-top: 2.1em; letter-spacing: -.015em; }
.gp-bl-prose img { border-radius: 16px; box-shadow: 0 24px 48px -30px rgba(12,58,65,.35), 0 0 0 1px rgba(15,23,42,.06); }
.gp-bl-prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 0; border-radius: 16px; background: linear-gradient(160deg, #f1f8fa, #eef5f7); box-shadow: inset 0 0 0 1px rgba(14,116,144,.14); font-style: normal; color: #0f172a; quotes: none; }
.gp-bl-prose blockquote p { margin: 0; }
.gp-bl-prose blockquote p::before, .gp-bl-prose blockquote p::after { content: none; }
.gp-bl-prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; }
.gp-bl-prose thead th { padding: 10px 12px; border-bottom: 2px solid #0f172a; }
.gp-bl-prose tbody td { padding: 10px 12px; border-bottom: 1px solid #e5e9ee; font-variant-numeric: tabular-nums; }

/* End-of-post call to action */
.gp-bl-endcta { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 20px; background: linear-gradient(135deg, #f0f8fa, #eef6f1); box-shadow: inset 0 0 0 1px rgba(14,116,144,.14); }
.gp-bl-endcta b { display: block; font-size: 18px; color: #0f172a; }
.gp-bl-endcta span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: #475569; }
.gp-bl-endcta-btns { display: flex; gap: 10px; flex: none; }
.gp-bl-btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: #0e7490; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s ease; }
.gp-bl-btn:hover { background: #0891b2; color: #fff; }
.gp-bl-btn-ghost { background: #fff; color: #0e7490; box-shadow: 0 0 0 1.5px #0e7490; }
.gp-bl-btn-ghost:hover { background: #0e7490; color: #fff; }

/* "You might also like" */
.gp-bl-more { padding-top: 56px; padding-bottom: 72px; }
.gp-bl-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.gp-bl-more-head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; color: #0f172a; }

@media (max-width: 949px) {
    .gp-bl-grid, .gp-bl-grid-2 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .gp-bl-grid.has-featured .gp-bl-card-featured { grid-column: auto; grid-row: auto; }
    .gp-bl-endcta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .gp-bl-hero { padding-top: 96px; }
    .gp-bl-lead { font-size: 17px; }
    .gp-bl-body, .gp-bl-card-featured .gp-bl-body { padding: 18px 20px 22px; }
    .gp-bl-author { flex-wrap: wrap; }
    .gp-bl-read { margin-left: 0; }
    .gp-bl-prose { font-size: 17px; }
    .gp-bl-prose table { display: block; overflow-x: auto; white-space: nowrap; }
    .gp-bl-endcta-btns { flex-wrap: wrap; }
    .gp-bl-pager-n { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gp-bl-card, .gp-bl-img img { transition: none; }
    .gp-bl-card:hover { transform: none; }
    .gp-bl-card:hover .gp-bl-img img { transform: none; }
}
.gp-bl-when { white-space: nowrap; }
