/* Knowledge centre (includes/knowledge.php), Figma 2031:13719 (index) and 2031:13921 (article). Values read --pm-* globals. */

/* Shared page head (page shell 2031:12253): breadcrumb, 56/64 title, 16/28 description. */
.pm-phead .pm-crumbs { margin-bottom: 12px; }
.pm-phead .pm-phead__title { margin: 0; color: var(--pm-navy-700); font: 600 56px/64px var(--pm-font-display), system-ui, sans-serif; letter-spacing: -0.02em; text-wrap: balance; }
.pm-phead--article .pm-phead__title { max-width: 960px; }
.pm-phead__sub { max-width: 760px; margin: 12px 0 0; color: var(--pm-neutral-500); font: 400 18px/28px var(--pm-font-body), system-ui, sans-serif; }
.pm-phead__byline { margin: 12px 0 0; color: var(--pm-neutral-500); font: 400 15px/22px var(--pm-font-body), system-ui, sans-serif; }
@media (max-width: 767px) {
	.pm-phead .pm-phead__title { font-size: 34px; line-height: 40px; }
	.pm-phead__sub { font-size: 15px; line-height: 24px; }
	.pm-phead__byline { font-size: 13px; line-height: 20px; }
}

/* Topic chips: active navy, others white with a 1px line. */
.pm-kchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; }
.pm-kchips .pm-kchip {
	display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--pm-radius-pill); background: var(--pm-neutral-0); box-shadow: inset 0 0 0 1px var(--pm-neutral-100);
	color: var(--pm-navy-700); font: 500 14px/20px var(--pm-font-display), system-ui, sans-serif; text-decoration: none; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease;
}
.pm-kchips .pm-kchip:hover { background: var(--pm-neutral-50); color: var(--pm-navy-700); }
.pm-kchips .pm-kchip[aria-current="page"] { height: 40px; background: var(--pm-navy-700); box-shadow: none; color: var(--pm-neutral-0); }
@media (max-width: 767px) { .pm-kchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; } }

/* Featured article: 720×420 cover + text, 28px radius, 1px line. */
.pm-klist { display: flex; flex-direction: column; gap: 48px; }
.pm-kfeat { display: grid; grid-template-columns: 720px minmax(0, 1fr); align-items: center; overflow: hidden; padding-top: 8px; border-radius: 28px; background: var(--pm-neutral-0); box-shadow: inset 0 0 0 1px var(--pm-neutral-100); }
.pm-kfeat .pm-kfeat__media { display: block; height: 420px; margin: 0 0 1px 1px; overflow: hidden; }
.pm-kfeat__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1); }
.pm-kfeat__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 48px; }
.pm-kfeat__text .pm-eyebrow { margin: 0; }
.pm-kfeat .pm-kfeat__title { margin: 0; font: 600 28px/36px var(--pm-font-display), system-ui, sans-serif; letter-spacing: -0.02em; }
.pm-kfeat .pm-kfeat__title a, .pm-kcard .pm-kcard__title a { color: var(--pm-navy-700); text-decoration: none; }
.pm-kfeat__excerpt { margin: 0; color: var(--pm-neutral-500); font: 400 16px/26px var(--pm-font-body), system-ui, sans-serif; text-wrap: pretty; }
.pm-kfeat .pm-kfeat__more { color: var(--pm-orange-700); font: 600 14px/20px var(--pm-font-display), system-ui, sans-serif; text-decoration: none; }
.pm-kfeat .pm-kfeat__more:hover { color: var(--pm-orange-800); }

/* Card grid: 3 × 421, 24px column gap, 40px row gap; 240px covers, 20px radius. */
.pm-kgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.pm-kcard { position: relative; display: flex; flex-direction: column; gap: 12px; }
.pm-kcard .pm-kcard__media { display: block; height: 240px; overflow: hidden; border-radius: 20px; background: var(--pm-navy-50); }
.pm-kcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.pm-kcard .pm-eyebrow { margin: 0; }
.pm-kcard .pm-kcard__title { display: -webkit-box; margin: 0; overflow: hidden; font: 600 22px/30px var(--pm-font-display), system-ui, sans-serif; letter-spacing: -0.01em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pm-kcard .pm-kcard__title a::after { content: ""; position: absolute; inset: 0; }
.pm-kcard__meta { margin: 0; color: var(--pm-neutral-500); font: 400 13px/20px var(--pm-font-body), system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.pm-klist .pm-kmore {
	align-self: flex-start; display: inline-flex; align-items: center; height: 51px; padding: 0 24px; border-radius: var(--pm-radius-pill); box-shadow: inset 0 0 0 1.5px var(--pm-navy-700);
	color: var(--pm-navy-700); font: 600 15px/20px var(--pm-font-display), system-ui, sans-serif; text-decoration: none; transition: background-color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pm-klist .pm-kmore:hover { background: var(--pm-navy-50); color: var(--pm-navy-700); }
.pm-klist .pm-kmore:active { transform: scale(0.97); }
.pm-kc-empty { color: var(--pm-neutral-500); font: 400 16px/26px var(--pm-font-body), system-ui, sans-serif; }
@media (hover: hover) and (pointer: fine) {
	.pm-kfeat:hover .pm-kfeat__media img, .pm-kcard:hover .pm-kcard__media img { transform: scale(1.03); }
}
@media (max-width: 1023px) { .pm-kfeat { grid-template-columns: 1fr; } .pm-kfeat .pm-kfeat__media { height: auto; aspect-ratio: 16 / 9; margin: 0; } .pm-kfeat__text { padding: 28px; } .pm-kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.pm-klist { gap: 32px; }
	.pm-kfeat { padding-top: 0; border-radius: 20px; }
	.pm-kfeat__text { gap: 10px; padding: 20px; }
	.pm-kfeat .pm-kfeat__title { font-size: 22px; line-height: 30px; }
	.pm-kgrid { grid-template-columns: 1fr; gap: 32px; }
	.pm-kcard .pm-kcard__media { height: auto; aspect-ratio: 421 / 240; }
	.pm-kcard .pm-kcard__title { font-size: 19px; line-height: 26px; }
}

/* Article cover 1312×520. */
.pm-acover { margin: 0; overflow: hidden; aspect-ratio: 1312 / 520; border-radius: 28px; background: var(--pm-navy-50); }
/* Hello Elementor caps .post .wp-post-image at 500px; the cover is 520 tall. */
.pm-acover.pm-acover img, .pm-kgrid .wp-post-image, .pm-kfeat .wp-post-image { max-height: none; }
.pm-acover.pm-acover img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (max-width: 767px) { .pm-acover { aspect-ratio: 16 / 10; border-radius: 20px; } }

/* Article row: body (fills) + 360px sidebar, 72px gap. */
.pm-article { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; }
.pm-article__body { display: flex; flex-direction: column; gap: 20px; min-width: 0; color: var(--pm-neutral-700); font: 400 16px/26px var(--pm-font-body), system-ui, sans-serif; letter-spacing: -0.005em; }
.pm-article__body > * { margin: 0; }
.pm-article__body .pm-article__lead { color: var(--pm-neutral-900); font-size: 18px; line-height: 28px; text-wrap: pretty; }
.pm-article__body h2 { margin-top: 12px; color: var(--pm-navy-700); font: 600 22px/30px var(--pm-font-display), system-ui, sans-serif; letter-spacing: -0.01em; scroll-margin-top: 112px; }
.pm-article__body h3 { color: var(--pm-navy-700); font: 600 18px/26px var(--pm-font-display), system-ui, sans-serif; }
.pm-article__body p { text-wrap: pretty; }
.pm-article__body ul, .pm-article__body ol { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; }
.pm-article__body strong { color: var(--pm-neutral-900); font-weight: 600; }
.pm-article__body a { color: var(--pm-orange-700); text-decoration: underline; text-underline-offset: 3px; }
.pm-article__body a:hover { color: var(--pm-orange-800); }
.pm-article__body em { color: var(--pm-neutral-500); font-size: 14px; line-height: 22px; }
/* Cost table (Figma "Cost table"): white card, label left, amount right, highlighted total row. */
.pm-article__body table { width: 100%; overflow: hidden; border: 0; border-collapse: separate; border-spacing: 0; border-radius: 16px; background: var(--pm-neutral-0); box-shadow: inset 0 0 0 1px var(--pm-neutral-100); font-size: 14px; line-height: 22px; }
.pm-article__body td, .pm-article__body th { padding: 14px 20px; border: 0; border-bottom: 1px solid var(--pm-neutral-100); text-align: left; }
.pm-article__body td:last-child, .pm-article__body th:last-child { color: var(--pm-navy-700); font: 500 14px/20px var(--pm-font-display), system-ui, sans-serif; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-article__body tr:last-child td { border-bottom: 0; }
.pm-article__body tfoot td, .pm-article__body tr.is-total td { background: var(--pm-navy-50); color: var(--pm-navy-700); font: 500 14px/20px var(--pm-font-display), system-ui, sans-serif; }
.pm-article__body tfoot td:last-child, .pm-article__body tr.is-total td:last-child { font-size: 20px; line-height: 28px; font-weight: 600; }
/* Tip box: a blockquote. */
.pm-article__body blockquote { margin: 0; padding: 18px 22px; border: 0; border-left: 3px solid var(--pm-orange-500); border-radius: 16px; background: var(--pm-orange-50); color: var(--pm-navy-700); }
.pm-article__body blockquote::before { content: "Tip"; display: block; margin-bottom: 6px; color: var(--pm-orange-700); font: 500 11px/16px var(--pm-font-display), system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.pm-article__body blockquote p { margin: 0; }

/* Sidebar: table of contents + navy cost-sheet card; sticks under the header. */
.pm-article__aside { position: sticky; top: calc(var(--pm-header-h, 88px) + 24px); display: flex; flex-direction: column; gap: 20px; }
.pm-toc { padding: 22px 24px; border-radius: 20px; background: var(--pm-neutral-0); box-shadow: inset 0 0 0 1px var(--pm-neutral-100); }
.pm-toc .pm-eyebrow { margin: 0 0 12px; color: var(--pm-neutral-500); }
.pm-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.pm-toc li { counter-increment: toc; }
.pm-toc a { display: block; color: var(--pm-neutral-500); font: 500 14px/32px var(--pm-font-display), system-ui, sans-serif; text-decoration: none; transition: color 150ms ease; }
.pm-toc a:hover, .pm-toc a[aria-current="true"] { color: var(--pm-orange-700); }
.pm-acta { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--pm-navy-700); }
.pm-acta__title { margin: 0; color: var(--pm-neutral-0); font: 600 18px/26px var(--pm-font-display), system-ui, sans-serif; }
.pm-acta__text { margin: 0; color: var(--pm-navy-100); font: 400 14px/22px var(--pm-font-body), system-ui, sans-serif; }
.pm-acta .pm-acta__btn {
	display: flex; align-items: center; justify-content: center; height: 51px; border-radius: var(--pm-radius-pill); background: var(--pm-neutral-0); color: var(--pm-navy-700);
	font: 600 15px/20px var(--pm-font-display), system-ui, sans-serif; text-decoration: none; transition: background-color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pm-acta .pm-acta__btn:hover { background: var(--pm-neutral-50); color: var(--pm-navy-700); }
.pm-acta .pm-acta__btn:active { transform: scale(0.97); }
@media (max-width: 1023px) { .pm-article { grid-template-columns: 1fr; gap: 40px; } .pm-article__aside { position: static; } }
@media (max-width: 767px) { .pm-article__body .pm-article__lead { font-size: 16px; line-height: 26px; } .pm-article__body td, .pm-article__body th { padding: 12px 14px; } }

/* Keep reading. */
.pm-related { padding-top: 48px; border-top: 1px solid var(--pm-neutral-100); }
.pm-related .pm-related__title { margin: 0 0 24px; color: var(--pm-navy-700); font: 600 28px/36px var(--pm-font-display), system-ui, sans-serif; letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) { .pm-kfeat__media img, .pm-kcard__media img { transition: none; } }
