/* css/blog.css
   Knowledge Center: blog index / category pages and single posts.
   Components: blog-intro, blog-category-nav, post-card, pager, article-prose,
   inline-post-cta, post footer (tags + share), related-posts, comments box. */

:root {
	--blog-ink: #0e3466;
	--blog-line: #e6e9ee;
	--blog-card-bd: rgba(60, 141, 183, .25);
}

/* ---------- page spacing (overrides the generic .page-wrap padding) ---------- */
.view-category.layout-blog .page-wrap { padding: 30px 0 50px; }
.page-wrap:has(> .container > .post) { padding: 0 0 109px; }

/* ---------- shared bits ---------- */
.avatar {
	display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
	background: var(--navy-900); color: var(--mint); font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1;
}
.dot { margin: 0 6px; }

/* "⋮" more-actions menu */
.kebab { position: relative; flex: none; margin-left: auto; }
.kebab__btn {
	display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	list-style: none; cursor: pointer; color: var(--navy-900);
}
.kebab__btn::-webkit-details-marker { display: none; }
.kebab__btn:hover, .kebab[open] .kebab__btn { background: rgba(60, 141, 183, .12); }
.kebab__dots, .kebab__dots::before, .kebab__dots::after { display: block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.kebab__dots { position: relative; }
.kebab__dots::before, .kebab__dots::after { content: ""; position: absolute; left: 0; }
.kebab__dots::before { top: -5px; }
.kebab__dots::after { top: 5px; }
.kebab__menu {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 170px; padding: 6px;
	background: #fff; border: 1px solid var(--blog-line); border-radius: 8px; box-shadow: 0 10px 28px rgba(6, 29, 64, .12);
}
.kebab__action {
	display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; cursor: pointer;
	font: inherit; font-size: 14px; line-height: 1.4; text-align: left; color: var(--navy-900); white-space: nowrap;
}
.kebab__action:hover { background: var(--bg-mint); color: var(--teal-700); }
[data-copy-link].is-copied { color: var(--teal); }

/* ==========================================================================
   Blog index / category
   ========================================================================== */
.blog-page { max-width: 1270px; margin: 0 auto; }

.blog-intro { text-align: center; }
.blog-intro__title {
	margin: 0 0 17px; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.03em; color: #000;
}
.blog-intro__lead { margin: 0; font-size: 24px; line-height: 35px; font-weight: 400; letter-spacing: -.03em; color: var(--slate); }

/* blog-category-nav */
.blog-nav { margin-top: 50px; }
.blog-nav__list {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0 40px; min-height: 80px; margin: 0; padding: 0; list-style: none;
}
.blog-nav__link { display: block; padding: 10px 0; font-size: 14px; line-height: 19.6px; color: var(--navy-900); white-space: nowrap; }
.blog-nav__link:hover { color: var(--teal); }
.blog-nav__link.is-active { color: var(--teal); }

.blog-cat-title {
	margin: 40px 0 60px; text-align: center;
	font-size: 36px; line-height: 46.7px; font-weight: 600; letter-spacing: -.03em; color: #000;
}
.blog-page--all .post-grid { margin-top: 21px; }
.blog-empty { margin: 40px 0; text-align: center; color: var(--slate); }

/* post-card grid */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post-card {
	display: flex; flex-direction: column; min-width: 0;
	background: #fff; border: 1px solid var(--blog-card-bd); border-radius: 4px;
}
.post-card__media {
	display: block; aspect-ratio: 402 / 210; overflow: hidden; border-radius: 3px 3px 0 0; background: #dde9f2;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.post-card__meta { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.post-card__byline { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 18px; color: var(--slate); }
.post-card__author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card__when { white-space: nowrap; }
.post-card__when .dot { margin: 0 5px; }
.post-card__cat {
	align-self: flex-start; margin-top: 16px; font-size: 14px; line-height: 19.6px; text-transform: uppercase; color: var(--teal);
}
.post-card__cat:hover { color: var(--teal-700); }
.post-card__title {
	margin: 13px 0 0; font-size: 26px; line-height: 39px; font-weight: 600; color: var(--navy-900);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--slate); }
.post-card__excerpt {
	margin: 12px 0 0; font-size: 15px; line-height: 25px; color: var(--slate);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.post-card__edit { margin-top: 12px; font-size: 13px; }

/* pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; }
.pager__item {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	font-size: 16px; line-height: 1; color: var(--slate);
}
a.pager__item:hover { color: var(--teal); background: rgba(60, 141, 183, .08); }
.pager__item.is-current { color: var(--teal); }
.pager__step::before {
	content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
}
.pager__step--prev::before { transform: translateX(2px) rotate(45deg); }
.pager__step--next::before { transform: translateX(-2px) rotate(-135deg); }
.pager__step { color: var(--navy-900); }
.pager__step.is-disabled { color: #c3cad3; }

/* ==========================================================================
   Single post
   ========================================================================== */
.post { max-width: 740px; margin: 100px auto 0; }
.post .article__edit { margin-bottom: 12px; }
.post__meta { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.post__meta-text { margin: 0; font-size: 14px; line-height: 21px; color: var(--blog-ink); }
.post__title { margin: 18px 0 47px; font-size: 40px; line-height: 1.4; font-weight: 600; color: var(--navy-900); }

/* article-prose */
.post-prose { font-size: 18px; line-height: 27px; color: var(--blog-ink); overflow-wrap: break-word; }
.post-prose > * { margin-top: 0; margin-bottom: 27px; }
.post-prose > :last-child { margin-bottom: 0; }
.post-prose p { margin-top: 0; margin-bottom: 27px; }
.post-prose strong, .post-prose b { font-weight: 600; color: var(--navy-900); }
.post-prose a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.post-prose a:hover { color: var(--teal); }
.post-prose h2 {
	margin: 27px 0; font-size: 28px; line-height: 39px; font-weight: 600; text-align: center; color: var(--navy-900);
}
.post-prose h3 { margin: 27px 0 14px; font-size: 22px; line-height: 32px; font-weight: 600; color: var(--navy-900); }
.post-prose h4 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--navy-900); }
.post-prose ul, .post-prose ol { padding-left: 36px; }
.post-prose ul { list-style: disc; }
.post-prose li { margin: 0; }
.post-prose li::marker { color: var(--navy-900); }
.post-prose blockquote {
	margin: 36px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--teal);
	font-size: 21px; line-height: 32px; font-weight: 500; color: var(--navy-900);
}
.post-prose blockquote p { margin: 0; }
.post-prose figure, .post-prose .post-figure { margin: 27px 0; }
.post-prose img { display: block; width: 100%; height: auto; border-radius: 0; }
.post-prose .post-figure + .post-figure { margin-top: -12px; }
.post-prose .post-note { font-size: 12px; line-height: 18px; font-style: italic; }
.post-prose .post-badge { margin-bottom: 16px; line-height: 1; }
.post-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-prose th, .post-prose td { padding: 10px 12px; border-bottom: 1px solid var(--blog-line); text-align: left; }

/* inline-post-cta (written into the article body) */
.post-prose .post-cta { margin-top: 50px; margin-bottom: 0; text-align: center; }
.post-cta h2 { margin: 0 0 22px; color: var(--teal); }
.post-cta p { margin: 0 0 23px; }
.post-cta .text-teal { color: var(--teal); }
.post-prose .post-cta__checks {
	display: grid; grid-template-columns: repeat(3, minmax(0, 233px)); justify-content: center; gap: 20px;
	margin: 0 0 45px; padding: 0; list-style: none;
}
.post-cta__checks li::before { content: "\2713\00a0"; color: var(--navy-900); }
.post-cta__action { margin-bottom: 28px; }
.post-prose .post-cta__btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 136px; min-height: 51px; padding: 12px 22px;
	border-radius: 4px; background: var(--teal); color: #fff; font-size: 16px; line-height: 1.3; text-decoration: none;
	transition: background-color .2s, box-shadow .2s;
}
.post-prose .post-cta__btn:hover { background: var(--teal-700); color: #fff; box-shadow: var(--glow-soft); }
.post-prose .post-cta__alt a { font-weight: 700; color: var(--navy-900); text-decoration: underline; }
.post-prose .post-cta__alt a:hover { color: var(--teal); }

/* post footer: tag + share */
.post__foot { margin-top: 21px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--blog-line); }
.post__tags a { font-size: 14px; line-height: 21px; color: var(--blog-ink); text-decoration: underline; text-underline-offset: 3px; }
.post__tags a:hover { color: var(--teal); }
.post__share { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.share-btn {
	display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
	background: none; color: var(--navy-900); cursor: pointer;
}
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover { color: var(--teal); }

/* related-posts */
.related { max-width: 940px; margin: 96px auto 0; }
.related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.related__title { margin: 0; font-size: 18px; line-height: 27px; font-weight: 400; color: var(--blog-ink); }
.related__all { font-size: 14px; color: var(--blog-ink); }
.related__all:hover { color: var(--teal); }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 33px; }
.related-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dde9f2; }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; }
.related-card__title {
	margin: 24px 24px 0; font-size: 18px; line-height: 27px; font-weight: 600; color: var(--navy-900);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.related-card__title a { color: inherit; }
.related-card__title a:hover { color: var(--teal); }

/* comments → contact box */
.post-comments { max-width: 740px; margin: 113px auto 0; }
.post-comments__title {
	margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--blog-line);
	font-size: 16px; line-height: 16px; font-weight: 700; color: var(--blog-ink);
}
.post-comments__box {
	display: flex; align-items: center; min-height: 56px; margin-top: 38px; padding: 0 16px;
	background: #fff; border: 2px solid #e3e6ea; font-size: 14px; color: var(--slate);
}
.post-comments__box:hover { border-color: var(--teal); color: var(--navy-900); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.post { margin-top: 56px; }
}

@media (max-width: 760px) {
	.view-category.layout-blog .page-wrap { padding-top: 32px; }
	.blog-intro__title { font-size: 24px; line-height: 32px; }
	.blog-intro__lead { font-size: 18px; line-height: 27px; }
	.blog-nav { margin: 24px calc(var(--gutter) * -1) 0; }
	.blog-nav__list {
		flex-wrap: nowrap; gap: 28px; min-height: 56px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none;
	}
	.blog-nav__list::-webkit-scrollbar { display: none; }
	.blog-nav__list::after { content: ""; flex: 0 0 1px; margin-left: -12px; }
	.blog-cat-title { margin: 24px 0 32px; font-size: 28px; line-height: 38px; }
	.blog-page--all .post-grid { margin-top: 8px; }
	.post-card__body { padding: 24px 22px 26px; }
	.post-card__title { font-size: 22px; line-height: 33px; }

	.post { margin-top: 40px; }
	.post__title { margin-bottom: 32px; font-size: 28px; line-height: 1.35; }
	.post-prose { font-size: 17px; line-height: 26px; }
	.post-prose h2 { font-size: 23px; line-height: 32px; }
	.post-prose .post-cta__checks { grid-template-columns: 1fr; gap: 8px; margin-bottom: 32px; }
	.related { margin-top: 64px; }
	.related__grid { grid-template-columns: 1fr; gap: 16px; }
	.related-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: center; }
	.related-card__title { margin: 0; font-size: 16px; line-height: 24px; -webkit-line-clamp: 3; line-clamp: 3; }
	.post-comments { margin-top: 64px; }
}

@media (max-width: 600px) {
	.post-grid { grid-template-columns: 1fr; }
}

@media print {
	.site-header, .site-footer, .pos-bottom-a, .pos-bottom-b, .post__share, .kebab, .related, .post-comments { display: none !important; }
	.post { margin-top: 0; }
}
