/* ==========================================================================
   Insights article template (blog posts) + block styles used inside posts.
   ========================================================================== */

/* ---------- Reading progress ----------------------------------------- */

.bc-page .bc-progress {
	position: sticky;
	top: var(--bc-header-h);
	z-index: 40;
	height: 3px;
	background: #e3ece9;
}

.admin-bar.bc-page .bc-progress {
	top: calc(var(--bc-header-h) + var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 600px) {
	.admin-bar.bc-page .bc-progress {
		top: var(--bc-header-h);
	}
}

.bc-page .bc-progress span {
	display: block;
	height: 100%;
	background: var(--bc-teal);
	transform: scaleX(0);
	transform-origin: left center;
}

/* ---------- Header ---------------------------------------------------- */

.bc-page .bc-article__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px var(--bc-gutter) 20px;
	background: #fff;
	color: var(--bc-ink);
}

.bc-page .bc-article__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bc-page .bc-article__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-page .bc-article__cat {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--bc-line-2);
	color: var(--bc-deep);
	font-size: 12px;
	font-weight: 600;
}

.bc-page .bc-article__cat.is-primary {
	background: var(--bc-teal);
	border-color: var(--bc-teal);
	color: #fff;
	font-weight: 700;
}

.bc-page .bc-article__title {
	font-family: var(--bc-font-head);
	font-size: clamp(30px, calc(30px + 24 * var(--bc-vw)), 54px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.bc-page .bc-article__lead {
	font-size: clamp(17px, calc(17px + 4 * var(--bc-vw)), 21px);
	line-height: 1.6;
	color: var(--bc-text);
}

.bc-page .bc-article__meta {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 14px;
	border-top: 1px solid #e3ece9;
}

.bc-page .bc-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bc-page .bc-author__img {
	display: block;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #cfe3df;
}

.bc-page .bc-author__text {
	display: flex;
	flex-direction: column;
}

.bc-page .bc-author__name {
	font-size: 14px;
	font-weight: 700;
}

.bc-page .bc-author__role,
.bc-page .bc-author__date {
	font-size: 12px;
	color: var(--bc-text-2);
}

.bc-page .bc-share {
	display: flex;
	gap: 8px;
}

.bc-page .bc-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--bc-line);
	background: #fff;
	color: var(--bc-deep);
	font-family: var(--bc-font-head);
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.bc-page .bc-share__btn:hover {
	background: var(--bc-light);
}

.bc-page .bc-article__cover {
	height: 200px;
	margin: 6px 0 0;
	overflow: hidden;
	border-radius: 18px;
	background: #e8f1ef;
}

.bc-page .bc-article__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bc-page .bc-article__mtoc {
	margin-top: 6px;
	padding: 4px 16px;
	border-radius: 16px;
	border: 1px solid var(--bc-line);
}

.bc-page .bc-article__mtoc summary {
	padding: 12px 0;
	font-family: var(--bc-font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bc-teal);
	cursor: pointer;
	list-style: none;
}

.bc-page .bc-article__mtoc summary::-webkit-details-marker {
	display: none;
}

.bc-page .bc-article__mtoc ol,
.bc-page .bc-article__toc ol {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.bc-page .bc-article__mtoc a,
.bc-page .bc-article__toc a {
	display: block;
	padding: 9px 0 9px 14px;
	border-left: 2px solid var(--bc-line);
	color: var(--bc-text-2);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.bc-page .bc-article__mtoc li:first-child a,
.bc-page .bc-article__toc a[aria-current],
.bc-page .bc-article__toc a:hover {
	border-left-color: var(--bc-teal);
	color: var(--bc-ink);
	font-weight: 700;
}

.bc-page .bc-article__label {
	font-family: var(--bc-font-head);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bc-teal);
}

/* ---------- Body: TOC · reading column · side ------------------------ */

.bc-page .bc-article__body {
	padding: 0 var(--bc-gutter) 40px;
	background: #fff;
	color: var(--bc-ink);
}

.bc-page .bc-article__content {
	min-width: 0;
}

.bc-page .bc-article__end {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid #e3ece9;
}

.bc-page .bc-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-page .bc-article__tags a {
	display: inline-block;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--bc-light);
	color: var(--bc-deep);
	font-size: 13px;
	font-weight: 600;
}

.bc-page .bc-author--box {
	gap: 18px;
	margin-top: 28px;
	padding: 22px;
	border-radius: 20px;
	background: var(--bc-light);
}

.bc-page .bc-author--box .bc-author__img {
	width: 64px;
	height: 64px;
}

.bc-page .bc-author--box .bc-author__text {
	gap: 4px;
}

.bc-page .bc-author--box .bc-author__name {
	font-size: 16px;
}

.bc-page .bc-author__bio {
	font-size: 14px;
	line-height: 1.55;
	color: var(--bc-text-2);
}

.bc-page .bc-article__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 40px;
}

.bc-page .bc-article__ask {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border-radius: 22px;
	background: var(--bc-ink);
	color: #fff;
}

.bc-page .bc-article__ask-title {
	font-family: var(--bc-font-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.bc-page .bc-article__ask-text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--bc-on-dark);
}

.bc-page .bc-article__ask .bc-btn {
	margin-top: 4px;
	min-height: 0;
	padding: 12px 16px;
	font-size: 15px;
}

.bc-page .bc-article__services {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border-radius: 18px;
	border: 1px solid var(--bc-line);
}

.bc-page .bc-article__services .bc-article__label {
	margin-bottom: 4px;
}

.bc-page .bc-article__services a {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	padding: 12px 0;
	border-top: 1px solid #e3ece9;
	color: var(--bc-ink);
	font-size: 15px;
	font-weight: 600;
}

.bc-page .bc-article__services a:hover {
	color: var(--bc-deep);
}

.bc-page .bc-article__services a span {
	color: var(--bc-teal);
}

/* ---------- Keep reading ---------------------------------------------- */

.bc-page .bc-keep {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-block: 40px;
}

.bc-page .bc-keep__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.bc-page .bc-keep__title {
	margin-bottom: 4px;
	font-family: var(--bc-font-head);
	font-size: clamp(22px, calc(22px + 8 * var(--bc-vw)), 30px);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.bc-page .bc-keep__grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-page .bc-keep__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid var(--bc-line);
	background: #fff;
	color: var(--bc-ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bc-page .bc-keep__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(13, 34, 36, 0.08);
}

.bc-page .bc-keep__meta {
	font-family: var(--bc-font-head);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bc-teal);
}

.bc-page .bc-keep__name {
	font-family: var(--bc-font-head);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.bc-page .bc-keep__sum {
	font-size: 14px;
	line-height: 1.55;
	color: var(--bc-text-2);
}

.bc-page .bc-keep__more {
	margin-top: auto;
	color: var(--bc-deep);
	font-size: 14px;
	font-weight: 700;
}

.bc-page .bc-keep .bc-btn--outline {
	min-height: 48px;
}

/* ---------- Prose (post content) -------------------------------------- */

.bc-page .bc-prose > * {
	margin-top: 0;
}

.bc-page .bc-prose p {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.75;
	color: #2c3b3a;
}

.bc-page .bc-prose h2 {
	margin: 36px 0 14px;
	font-family: var(--bc-font-head);
	font-size: clamp(23px, calc(23px + 7 * var(--bc-vw)), 30px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--bc-ink);
	scroll-margin-top: 100px;
}

.bc-page .bc-prose h3 {
	margin: 22px 0 10px;
	font-family: var(--bc-font-head);
	font-size: clamp(18px, calc(18px + 3 * var(--bc-vw)), 21px);
	font-weight: 700;
	line-height: 1.35;
	color: var(--bc-ink);
}

.bc-page .bc-prose a {
	color: var(--bc-deep);
	text-decoration: underline;
	text-decoration-color: var(--bc-mint);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.bc-page .bc-prose ul,
.bc-page .bc-prose ol {
	margin: 0 0 22px;
	padding-left: 22px;
	font-size: 16px;
	line-height: 1.75;
	color: #2c3b3a;
}

.bc-page .bc-prose li + li {
	margin-top: 6px;
}

.bc-page .bc-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

/* Key takeaways (List block → "BC key takeaways"). */
.bc-page .bc-prose ul.is-style-bc-takeaways {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 8px;
	padding: 18px;
	border-radius: 22px;
	border: 1px solid var(--bc-line);
	background: var(--bc-light);
	list-style: none;
}

.bc-page .bc-prose ul.is-style-bc-takeaways li {
	position: relative;
	margin: 0;
	padding-left: 40px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--bc-ink);
}

.bc-page .bc-prose ul.is-style-bc-takeaways li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--bc-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Data table (Table block → "BC table"). */
.bc-page .bc-prose .wp-block-table.is-style-bc-table {
	margin: 8px 0 28px;
	overflow-x: auto;
	border-radius: 18px;
	border: 1px solid var(--bc-line);
}

.bc-page .bc-prose .is-style-bc-table table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
	color: var(--bc-ink);
}

.bc-page .bc-prose .is-style-bc-table th,
.bc-page .bc-prose .is-style-bc-table td {
	padding: 16px 18px;
	border: 0;
	text-align: left;
	vertical-align: top;
}

.bc-page .bc-prose .is-style-bc-table thead {
	border: 0;
	background: var(--bc-light);
}

.bc-page .bc-prose .is-style-bc-table thead th {
	padding: 14px 18px;
	font-family: var(--bc-font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bc-deep);
}

.bc-page .bc-prose .is-style-bc-table tbody tr {
	border-top: 1px solid #e3ece9;
}

.bc-page .bc-prose .is-style-bc-table tbody td:first-child {
	font-weight: 700;
}

.bc-page .bc-prose .is-style-bc-table tbody td:last-child {
	color: var(--bc-text);
}

.bc-page .bc-prose .is-style-bc-table td:has(.bc-meter) {
	white-space: nowrap;
}

.bc-page .bc-meter {
	display: inline-flex;
	gap: 3px;
	margin-right: 8px;
	vertical-align: middle;
}

.bc-page .bc-meter span {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: #cfe0dd;
}

.bc-page .bc-meter span.is-on {
	background: var(--bc-teal);
}

/* Callout (Paragraph block → "BC callout"; start with a bold label). */
.bc-page .bc-prose p.is-style-bc-callout {
	margin: 8px 0 28px;
	padding: 20px 24px;
	border-left: 4px solid var(--bc-saffron);
	border-radius: 0 16px 16px 0;
	background: #fff8e8;
	font-size: 15px;
	line-height: 1.65;
	color: var(--bc-ink);
}

.bc-page .bc-prose p.is-style-bc-callout > strong:first-child {
	display: block;
	margin-bottom: 6px;
	font-family: var(--bc-font-head);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a6514;
}

/* Numbered steps (List block, ordered → "BC numbered steps"; "<strong>Title</strong> text"). */
.bc-page .bc-prose ol.is-style-bc-steps {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	counter-reset: bc-step;
}

.bc-page .bc-prose ol.is-style-bc-steps li {
	position: relative;
	min-height: 76px;
	margin: 0;
	padding: 18px 0 18px 56px;
	border-top: 1px solid #e3ece9;
	font-size: 16px;
	line-height: 1.6;
	color: var(--bc-text);
	counter-increment: bc-step;
}

.bc-page .bc-prose ol.is-style-bc-steps li::before {
	content: counter(bc-step);
	position: absolute;
	left: 0;
	top: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--bc-ink);
	color: #fff;
	font-family: var(--bc-font-head);
	font-weight: 800;
}

.bc-page .bc-prose ol.is-style-bc-steps li:last-child::before {
	background: var(--bc-grad);
}

.bc-page .bc-prose ol.is-style-bc-steps strong {
	display: block;
	margin-bottom: 4px;
	font-family: var(--bc-font-head);
	font-size: 17px;
	color: var(--bc-ink);
}

/* ---------- Desktop ---------------------------------------------------- */

@media (min-width: 1024px) {
	.bc-page .bc-progress {
		height: 4px;
	}

	.bc-page .bc-article__head {
		align-items: center;
		gap: 0;
		padding: 56px var(--bc-gutter) 40px;
	}

	.bc-page .bc-article__intro {
		width: min(880px, 100%);
		gap: 22px;
	}

	.bc-page .bc-article__cats {
		gap: 8px;
	}

	.bc-page .bc-article__cat {
		padding: 7px 14px;
		font-size: 13px;
	}

	.bc-page .bc-article__title {
		line-height: 1.1;
		letter-spacing: -0.03em;
	}

	.bc-page .bc-article__meta {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding-top: 22px;
	}

	.bc-page .bc-author {
		gap: 14px;
	}

	.bc-page .bc-author__img {
		width: 48px;
		height: 48px;
	}

	.bc-page .bc-author__name {
		font-size: 15px;
	}

	.bc-page .bc-author__role {
		font-size: 13px;
	}

	.bc-page .bc-author__sep {
		width: 1px;
		height: 32px;
		margin: 0 6px;
		background: var(--bc-line);
	}

	.bc-page .bc-author__date {
		font-size: 14px;
	}

	.bc-page .bc-share__btn {
		width: 38px;
		height: 38px;
		font-size: 12px;
	}

	.bc-page .bc-article__cover {
		width: min(1080px, 100%);
		height: auto;
		aspect-ratio: 1080 / 460;
		margin-top: 40px;
		border-radius: 24px;
	}

	.bc-page .bc-article__body {
		display: grid;
		grid-template-columns: 240px minmax(0, 720px) 240px;
		justify-content: space-between;
		align-items: start;
		column-gap: 24px;
		padding: 24px var(--bc-gutter) 88px;
	}

	.bc-page .bc-article__toc,
	.bc-page .bc-article__side {
		position: sticky;
		top: calc(var(--bc-header-h) + 26px);
		padding-top: 52px;
	}

	.bc-page .bc-article__toc {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.bc-page .bc-article__toc ol {
		margin: 0;
	}

	.bc-page .bc-article__label {
		font-size: 12px;
		letter-spacing: 0.14em;
	}

	.bc-page .bc-article__end {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 20px;
	}

	.bc-page .bc-article__side {
		margin-top: 0;
	}

	.bc-page .bc-article__services {
		gap: 4px;
		padding: 20px;
		border-radius: 22px;
	}

	.bc-page .bc-article__services .bc-article__label {
		margin-bottom: 6px;
	}

	.bc-page .bc-article__services a {
		padding: 10px 0;
		font-size: 14px;
	}

	.bc-page .bc-keep {
		gap: 28px;
		padding-block: 88px;
	}

	.bc-page .bc-keep__title {
		margin: 0;
	}

	.bc-page .bc-keep__grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.bc-page .bc-keep__card {
		gap: 12px;
		min-height: 220px;
		padding: 26px;
		border-radius: 22px;
	}

	.bc-page .bc-keep__meta {
		font-size: 11px;
		letter-spacing: 0.14em;
	}

	.bc-page .bc-keep__name {
		font-size: 20px;
	}

	.bc-page .bc-keep__more {
		font-size: 16px;
	}

	.bc-page .bc-prose p {
		font-size: 18px;
		line-height: 1.8;
	}

	.bc-page .bc-prose h2 {
		margin: 48px 0 18px;
	}

	.bc-page .bc-prose h3 {
		margin: 28px 0 12px;
	}

	.bc-page .bc-prose ul,
	.bc-page .bc-prose ol {
		font-size: 18px;
		line-height: 1.8;
	}

	.bc-page .bc-prose ul.is-style-bc-takeaways {
		margin-bottom: 12px;
		padding: 28px 30px;
	}

	.bc-page .bc-prose ul.is-style-bc-takeaways li {
		font-size: 16px;
		line-height: 1.65;
	}

	.bc-page .bc-prose .is-style-bc-table table {
		min-width: 0;
	}

	.bc-page .bc-prose p.is-style-bc-callout {
		font-size: 17px;
		line-height: 1.7;
	}

	.bc-page .bc-prose ol.is-style-bc-steps li {
		font-size: 16px;
	}
}
