/* Blog index, blog posts and privacy policy */

/* Page hero */
.blog-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); border-bottom: 1px solid #eef2f7; }
.blog-hero .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-bottom: 1.25rem; font-size: 0.88rem; color: var(--muted); }
.blog-hero .breadcrumbs a { color: var(--navy); text-decoration: none; font-weight: 500; }
.blog-hero .breadcrumbs a:hover { text-decoration: underline; }
.blog-hero .breadcrumbs .i { font-size: 0.8rem; color: var(--line-2); }
.blog-hero .breadcrumbs [aria-current] { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.blog-hero .page-title { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0.8rem 0 1rem; max-width: 22ch; overflow-wrap: break-word; }
.blog-hero .section-lead { max-width: 62ch; }
.blog-hero .badge { margin-bottom: 0.2rem; }
.post-hero .page-title { max-width: none; font-size: clamp(1.85rem, 4.2vw, 2.9rem); }

.post-container { width: min(860px, 100% - 2.5rem); margin-inline: auto; }

.post-meta-line { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); }
.post-meta-line span { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-meta-line .i { color: var(--navy); }

.post-cover { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-tint); }
.post-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }

/* Post cards */
.blog-list-title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 1.75rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.25s ease, transform 0.25s var(--ease), border-color 0.25s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); }
.post-card:focus-within { box-shadow: var(--shadow); border-color: var(--navy); }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 1.3rem 1.35rem 1.45rem; flex: 1; }
.post-card-title { font-size: 1.2rem; line-height: 1.3; }
.post-card-title a { text-decoration: none; color: var(--ink); }
.post-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card-title a:focus-visible { outline: none; }
.post-card-title a:hover { color: var(--navy-2); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.84rem; color: var(--muted); }
.post-card-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.post-card-desc { font-size: 0.95rem; color: var(--text); }
.post-card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; padding-top: 0.3rem; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.post-card-more .i { transition: transform 0.2s ease; }
.post-card:hover .post-card-more { color: var(--accent); }
.post-card:hover .post-card-more .i { transform: translateX(3px); }
.blog-empty { display: flex; align-items: center; gap: 0.6rem; padding: 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); background: var(--bg-soft); }
.blog-empty .i { font-size: 1.6rem; color: var(--navy); }

/* Article typography */
.post-section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose { font-size: clamp(1rem, 1.2vw, 1.075rem); line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.25; margin-top: 2.5rem; }
.prose h3 { font-size: clamp(1.12rem, 1.8vw, 1.28rem); line-height: 1.3; margin-top: 1.8rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.75rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(11, 31, 58, 0.3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.4rem; }
.prose li + li { margin-top: 0.5rem; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--navy); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 0.4rem 0 0.4rem 1.25rem; border-left: 3px solid var(--navy); color: var(--ink); font-style: italic; }
.prose .callout { display: block; margin-block: 2rem; padding: 1.25rem 1.4rem; border: 1px solid #e3e9f3; border-left: 4px solid var(--accent); border-radius: 12px; background: var(--bg-tint); font-size: inherit; color: var(--ink); font-weight: 500; }
.prose .callout p + p { margin-top: 0.6rem; }
.prose .mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; margin-block: 1.75rem; }
.prose .mini-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose .mini-card strong { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 1.15rem; line-height: 1.3; color: var(--navy); }
.prose .mini-card span { font-size: 0.93rem; line-height: 1.55; color: var(--text); }
.prose-lead { font-size: clamp(1.05rem, 1.4vw, 1.15rem); color: var(--ink); }

/* CTA panel */
.cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--navy); color: rgba(255, 255, 255, 0.85); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cta-panel-copy { flex: 1 1 340px; min-width: 0; }
.cta-panel .eyebrow { color: #ff8a7f; }
.cta-panel h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0.55rem 0 0.6rem; }
.cta-panel p { max-width: 60ch; }
.cta-panel-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-panel .btn-primary { background: #fff; color: var(--navy); }
.cta-panel .btn-primary:hover { background: #eef2f8; }
.cta-panel .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-panel .btn-outline:hover { border-color: #fff; }
.post-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.post-back { margin-top: 2rem; }

/* Privacy policy */
.privacy-prose h2 { scroll-margin-top: calc(var(--header-h) + 16px); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.privacy-prose h2:first-of-type { border-top: 0; padding-top: 0; }
.privacy-contact { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.privacy-contact p { display: flex; align-items: center; gap: 0.6rem; color: #fff; }
.privacy-contact p .i { font-size: 1.6rem; color: #ff8a7f; flex: none; }

@media (max-width: 640px) {
	.blog-hero .page-title { max-width: none; }
	.cta-panel-actions, .cta-panel-actions .btn { width: 100%; }
	.cta-panel .btn { white-space: normal; text-align: center; }
	.prose ul, .prose ol { padding-left: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
	.post-card, .post-card-media img, .post-card-more .i { transition: none; }
	.post-card:hover { transform: none; }
	.post-card:hover .post-card-media img { transform: none; }
}
