.ocle-page {
	padding: clamp(2.5rem, 6vw, 5rem) 1.25rem 6rem;
	background: #fff;
}

/* Explicit semantic styles replace accidental formatting based on text position. */
.ocle-longread p[class*="is-style-ocle-"] { position: relative; margin-block: 1.35rem; padding: 1rem 1.15rem; color: var(--ocle-ink); background: #fff; border: 1px solid #dce3eb; border-left: 5px solid var(--ocle-accent); border-radius: 12px; }
.ocle-longread .is-style-ocle-lead { padding: 0 !important; font-size: 1.22em; line-height: 1.6; background: transparent !important; border: 0 !important; }
.ocle-longread :where(.is-style-ocle-key-point, .is-style-ocle-info, .is-style-ocle-question) { background: #eef6ff !important; border-color: #cfe2f7 !important; }
.ocle-longread .is-style-ocle-important { background: #fff8df !important; border-color: #eadca5 !important; border-left-color: #a66b00 !important; }
.ocle-longread :where(.is-style-ocle-example, .is-style-ocle-conclusion) { background: #edfaf5 !important; border-color: #bfe5d5 !important; border-left-color: #087f5b !important; }
.ocle-longread .is-style-ocle-quote { padding-left: 2.5rem; background: #f5f2ff !important; border-color: #d9cff7 !important; border-left-color: #6b4eff !important; font-style: italic; }
.ocle-longread .is-style-ocle-heading-accent { padding: .9rem 1.15rem !important; background: #eef6ff !important; border: 1px solid #cfe2f7 !important; border-left: 5px solid var(--ocle-accent) !important; border-radius: 12px !important; }
.ocle-longread { counter-reset: ocle-heading; }
.ocle-longread .is-style-ocle-heading-numbered { counter-increment: ocle-heading; padding-left: 3.4rem !important; background: transparent !important; border: 0 !important; }
.ocle-longread .is-style-ocle-heading-numbered::before { top: .2em !important; bottom: auto !important; left: 0 !important; width: auto !important; height: auto !important; color: #155eef; font-size: .75em; font-weight: 800; background: transparent !important; content: counter(ocle-heading, decimal-leading-zero) !important; }
.ocle-longread .is-style-ocle-pros-cons { padding: 1rem 1rem 1rem 2.5rem; background: #f5f2ff; border: 1px solid #d9cff7; border-radius: 12px; }
.ocle-longread :where(.is-style-ocle-table-comparison, .is-style-ocle-table-calculation, .is-style-ocle-table-key-value) { overflow: hidden; border: 1px solid #dce3eb; border-radius: 12px; }
.ocle-longread .is-style-ocle-table-comparison table th { background: #eef6ff; }
.ocle-longread .is-style-ocle-table-calculation table td:last-child { font-weight: 700; background: #edfaf5; }
.ocle-longread .is-style-ocle-table-key-value table td:first-child { width: 38%; font-weight: 700; background: #f3f6fa; }
.ocle-longread .is-style-ocle-image-framed { padding: .6rem; background: #fff; border: 1px solid #dce3eb; border-radius: 12px; box-shadow: 0 8px 22px rgba(23,33,43,.08); }
.ocle-longread :where(.is-style-ocle-section, .is-style-ocle-card, .is-style-ocle-case) { margin-block: 1.5rem; padding: 1.3rem; border-radius: 14px; }
.ocle-longread .is-style-ocle-section { background: #f8fafc; border: 1px solid #e3e8ef; }
.ocle-longread .is-style-ocle-card { background: #fff; border: 1px solid #dce3eb; box-shadow: 0 8px 24px rgba(23,33,43,.07); }
.ocle-longread .is-style-ocle-case { background: #fff8df; border: 1px solid #eadca5; }

.ocle-page__header {
	max-width: 900px;
	margin: 0 auto 3rem;
	text-align: center;
}

.ocle-page__eyebrow,
.ocle-page__title,
.ocle-page__lead {
	color: #17212b;
}

.ocle-page__eyebrow {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ocle-page__title {
	font-size: clamp(2.1rem, 5vw, 4rem);
	line-height: 1.08;
	letter-spacing: -.035em;
	margin: .65rem 0 1rem;
}

.ocle-page__lead {
	max-width: 720px;
	margin-inline: auto;
	font-size: 1.1rem;
}

.ocle-longread {
	--ocle-accent: #155eef;
	--ocle-ink: #17212b;
	color: var(--ocle-ink);
	font-size: 1.075rem;
	line-height: 1.72;
	max-width: 760px;
	margin-inline: auto;
}

.ocle-longread :where(h2, h3, h4, p, li, dt, dd, th, td, strong, em, figcaption) {
	color: var(--ocle-ink);
}

.ocle-longread > * + * {
	margin-block-start: 1.25em;
}

.ocle-longread h2 {
	position: relative;
	font-size: clamp(1.55rem, 3vw, 2rem);
	line-height: 1.2;
	margin-block: 2.5em .9em;
	padding: .25rem 0 .65rem 1.2rem;
	background: transparent;
	border: 0;
	border-bottom: 3px solid #dce3eb;
	border-radius: 0;
}

.ocle-longread h2::before {
	position: absolute;
	top: .75rem;
	bottom: .75rem;
	left: 0;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: var(--ocle-accent);
	content: "";
}

.ocle-longread h2:nth-of-type(3n + 1) {
	padding: .9rem 1.15rem .95rem 1.35rem;
	background: #eef6ff;
	border: 1px solid #cfe2f7;
	border-radius: 14px;
}

.ocle-longread h2:nth-of-type(3n + 2) {
	padding-left: 0;
	border-bottom-color: #17212b;
}

.ocle-longread h2:nth-of-type(3n + 2)::before {
	display: none;
}

.ocle-longread h2:nth-of-type(3n) {
	padding: 1rem 1.2rem;
	background: #fff8df;
	border: 1px solid #eadca5;
	border-radius: 14px 14px 14px 4px;
}

.ocle-longread h2:nth-of-type(3n)::before {
	top: 0;
	bottom: auto;
	width: 42%;
	height: 5px;
	border-radius: 14px 0 5px;
	background: #c69716;
}

.ocle-longread h3 {
	font-size: 1.25rem;
	line-height: 1.3;
	margin-block-start: 1.9em;
	padding-bottom: .45rem;
	border-bottom: 2px solid #e6ebf0;
}

.ocle-longread img {
	height: auto;
	max-width: 100%;
}

.ocle-longread :where(ul, ol) {
	padding: 1.1rem 1.25rem 1.1rem 2.75rem;
	background: #f8fafc;
	border: 1px solid #e3e8ef;
	border-radius: 12px;
}

.ocle-longread ol {
	list-style: none;
	counter-reset: ocle-steps;
	padding-left: 1.15rem;
	background: transparent;
	border: 0;
}

.ocle-longread ol > li {
	position: relative;
	min-height: 2.25rem;
	padding: .25rem 0 .85rem 3rem;
	counter-increment: ocle-steps;
}

.ocle-longread ol > li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	width: 2.15rem;
	height: 2.15rem;
	place-items: center;
	color: #17212b;
	font-size: .82rem;
	font-weight: 800;
	background: #e4efff;
	border: 1px solid #bad2f2;
	border-radius: 50%;
	content: counter(ocle-steps);
}

.ocle-longread ol > li:not(:last-child)::after {
	position: absolute;
	top: 2.2rem;
	bottom: -.25rem;
	left: 1.05rem;
	width: 1px;
	background: #bad2f2;
	content: "";
}

.ocle-longread li + li {
	margin-top: .55rem;
}

.ocle-longread figure.wp-block-table {
	overflow: hidden;
	border: 1px solid #dce3eb;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(23, 33, 43, .06);
}

.ocle-longread table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	margin: 0;
}

.ocle-longread :where(th, td) {
	padding: .8rem .9rem;
	border-color: #dce3eb;
}

.ocle-longread th {
	background: #eef3f8;
	font-weight: 700;
}

.ocle-longread tbody tr:nth-child(even) td {
	background: #f8fafc;
}

.ocle-longread blockquote {
	margin-inline: 0;
	padding: 1.15rem 1.35rem;
	background: #fff8df;
	border: 1px solid #eadca5;
	border-left: 5px solid #c69716;
	border-radius: 12px;
}

.ocle-longread p:has(> strong:first-child) {
	padding: 1rem 1.2rem;
	background: #eef6ff;
	border: 1px solid #cfe2f7;
	border-left: 5px solid var(--ocle-accent);
	border-radius: 12px;
}

.ocle-longread p:has(> strong:first-child):nth-of-type(3n + 2) {
	background: #edfaf5;
	border-color: #bfe5d5;
	border-left-color: #087f5b;
}

.ocle-longread p:has(> strong:first-child):nth-of-type(3n) {
	background: #fff3e8;
	border-color: #f1d2b5;
	border-left-color: #b85c00;
}

.ocle-longread hr.wp-block-separator {
	width: 100%;
	height: 1px;
	margin-block: 2.5rem;
	background: linear-gradient(90deg, transparent, #aeb9c5 18%, #aeb9c5 82%, transparent);
	border: 0;
}

.ocle-callout {
	border-left: 5px solid var(--ocle-accent);
	background: #eef6ff;
	padding: 1rem 1.25rem;
	border-radius: 12px;
}

.ocle-callout > :first-child {
	margin-top: 0;
}

.ocle-callout > :last-child {
	margin-bottom: 0;
}

.ocle-callout--example {
	--ocle-accent: #087f5b;
	background: #edfaf5;
}

.ocle-longread :where(.ocle-panel, .is-style-ocle-key, .is-style-ocle-example, .is-style-ocle-warning, .is-style-ocle-exercise, .is-style-ocle-summary) {
	margin-block: 1.5rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid #dce3eb;
	border-left: 5px solid var(--ocle-accent);
	border-radius: 14px;
}

.ocle-longread :where(.ocle-panel--case, .is-style-ocle-warning) {
	background: #fff8df;
	border-color: #eadca5;
	border-left-color: #c69716;
}

.ocle-longread :where(.ocle-callout--self-check, .is-style-ocle-example, .is-style-ocle-summary) {
	background: #edfaf5;
	border-color: #bfe5d5;
	border-left-color: #087f5b;
}

.ocle-longread :where(.ocle-callout--key, .ocle-panel--outcomes, .is-style-ocle-key, .is-style-ocle-exercise) {
	background: #eef6ff;
	border-color: #cfe2f7;
}

.ocle-longread .ocle-panel--calculation {
	background: #f3f6fa;
}

.ocle-longread .ocle-formula {
	padding: 1.1rem;
	background: #17212b;
	color: #fff;
	border: 0;
	border-radius: 10px;
	text-align: center;
}

.ocle-longread .ocle-comparison > .wp-block-column {
	padding: 1.2rem;
	border: 1px solid #dce3eb;
	border-radius: 12px;
}

.ocle-longread .is-style-ocle-checklist {
	list-style: "✓  ";
	background: #edfaf5;
	border-color: #bfe5d5;
}

.ocle-editor-placeholder {
	border: 1px dashed #8c8f94;
	padding: 1rem;
}

.ocle-message {
	color: #17212b;
	padding: .75rem;
	background: #fff8e5;
}

@media (max-width: 600px) {
	.ocle-page {
		padding-inline: 1rem;
	}

	.ocle-page__header {
		text-align: left;
	}

	.ocle-longread {
		font-size: 1rem;
	}

	.ocle-longread h2 {
		padding-inline: 1rem;
	}

	.ocle-callout,
	.ocle-longread p:has(> strong:first-child) {
		padding: .875rem 1rem;
	}
}

@media print {
	.ocle-page {
		padding: 0;
	}

	.ocle-page__eyebrow {
		display: none;
	}

	.ocle-longread {
		max-width: none;
		font-size: 11pt;
	}

	.ocle-longread h2,
	.ocle-longread :where(ul, ol),
	.ocle-longread p:has(> strong:first-child),
	.ocle-callout {
		break-inside: avoid;
	}

	.ocle-longread a {
		color: inherit;
		text-decoration: underline;
	}
}
