/*
 * Mixed Fraction Calculator.
 *
 * Every rule is prefixed `body.mfc-page` so it outranks ruki-child's
 * `.t33-page-main .entry-content a / h1..h6 / input` rules at (0,3,1).
 * No !important. The shared tool-page shell is spliced in at the end of this
 * file by ../_shared/sync-shell.js; do not edit inside its markers.
 */

body.mfc-page .mfc {
	--mfc-ink: #1b2233;
	--mfc-soft: #5a6378;
	--mfc-faint: #8b93a7;
	--mfc-cyan: #2bc8e8;
	--mfc-cyan-d: #0f8fab;
	--mfc-coral: #f67280;
	--mfc-navy: #0d1430;
	--mfc-line: #e3e7ef;
	--mfc-wash: #f5f8fc;
	--mfc-ok: #1f8a5b;
	--mfc-warn: #b26a00;
	--mfc-err: #c23b4a;
	position: relative;
	background: #fff;
	color: var(--mfc-ink);
	border-radius: 16px;
	padding: 26px 28px 24px;
	margin: 0 auto 2.2em;
	max-width: 900px;
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}

body.mfc-page .mfc *,
body.mfc-page .mfc *::before,
body.mfc-page .mfc *::after {
	box-sizing: border-box;
}

body.mfc-page .mfc .mfc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

body.mfc-page .mfc [hidden] {
	display: none;
}

/* ---------------------------------------------------------------- input */

body.mfc-page .mfc .mfc-boxes-wrap {
	overflow-x: auto;
	padding: 4px 2px 6px;
}

body.mfc-page .mfc .mfc-boxes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 10px;
}

body.mfc-page .mfc .mfc-term {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border: 1px solid var(--mfc-line);
	border-radius: 12px;
	background: var(--mfc-wash);
}

body.mfc-page .mfc .mfc-cell {
	display: block;
	margin: 0;
}

body.mfc-page .mfc .mfc-in {
	display: block;
	width: 58px;
	height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 1.5px solid #cdd4e1;
	border-radius: 8px;
	background: #fff;
	color: var(--mfc-ink);
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

body.mfc-page .mfc .mfc-in-w {
	width: 62px;
	height: 56px;
	font-size: 1.5rem;
}

body.mfc-page .mfc .mfc-in:focus {
	outline: none;
	border-color: var(--mfc-cyan);
	box-shadow: 0 0 0 3px rgba(43, 200, 232, 0.25);
}

body.mfc-page .mfc .mfc-frac-in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

body.mfc-page .mfc .mfc-frac-bar {
	display: block;
	width: 64px;
	height: 3px;
	border-radius: 2px;
	background: var(--mfc-ink);
}

body.mfc-page .mfc .mfc-del {
	position: absolute;
	top: -9px;
	right: -9px;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mfc-line);
	border-radius: 50%;
	background: #fff;
	color: var(--mfc-soft);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

body.mfc-page .mfc .mfc-del:hover,
body.mfc-page .mfc .mfc-del:focus-visible {
	color: var(--mfc-err);
	border-color: var(--mfc-err);
}

body.mfc-page .mfc .mfc-opwrap {
	display: block;
	margin: 0;
}

body.mfc-page .mfc .mfc-op-select {
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mfc-navy);
	color: #fff;
	font-family: inherit;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-align-last: center;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

body.mfc-page .mfc .mfc-op-select:focus-visible {
	outline: 3px solid var(--mfc-cyan);
	outline-offset: 2px;
}

body.mfc-page .mfc .mfc-op-select option {
	color: var(--mfc-ink);
	background: #fff;
}

body.mfc-page .mfc .mfc-note {
	margin: 4px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--mfc-wash);
	color: var(--mfc-soft);
	font-size: 0.95rem;
}

body.mfc-page .mfc .mfc-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 18px;
}

body.mfc-page .mfc button {
	font-family: inherit;
}

body.mfc-page .mfc .mfc-btn-add,
body.mfc-page .mfc .mfc-btn-ghost,
body.mfc-page .mfc .mfc-btn-s,
body.mfc-page .mfc .mfc-chip,
body.mfc-page .mfc .mfc-seg {
	margin: 0;
	border-radius: 999px;
	cursor: pointer;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}

body.mfc-page .mfc .mfc-btn-add {
	padding: 10px 18px;
	border: 1.5px solid var(--mfc-cyan-d);
	background: #fff;
	color: var(--mfc-cyan-d);
	font-size: 0.95rem;
	font-weight: 700;
}

body.mfc-page .mfc .mfc-btn-add:hover {
	background: rgba(43, 200, 232, 0.1);
}

body.mfc-page .mfc .mfc-btn-ghost {
	padding: 10px 16px;
	border: 1.5px solid transparent;
	background: transparent;
	color: var(--mfc-soft);
	font-size: 0.95rem;
	font-weight: 600;
}

body.mfc-page .mfc .mfc-btn-ghost:hover {
	color: var(--mfc-ink);
	text-decoration: underline;
}

body.mfc-page .mfc .mfc-type {
	display: block;
	margin: 0;
}

body.mfc-page .mfc .mfc-type-label {
	display: block;
	margin-bottom: 6px;
	color: var(--mfc-soft);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.mfc-page .mfc .mfc-type-in {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid #cdd4e1;
	border-radius: 10px;
	background: #fff;
	color: var(--mfc-ink);
	font-family: inherit;
	font-size: 1.15rem;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

body.mfc-page .mfc .mfc-type-in:focus {
	outline: none;
	border-color: var(--mfc-cyan);
	box-shadow: 0 0 0 3px rgba(43, 200, 232, 0.25);
}

body.mfc-page .mfc .mfc-hint {
	margin: 8px 0 0;
	color: var(--mfc-faint);
	font-size: 0.88rem;
}

body.mfc-page .mfc .mfc-examples {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

body.mfc-page .mfc .mfc-examples-label {
	color: var(--mfc-soft);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.mfc-page .mfc .mfc-chip {
	padding: 7px 12px;
	border: 1px solid var(--mfc-line);
	background: #fff;
	color: var(--mfc-ink);
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
}

body.mfc-page .mfc .mfc-chip:hover,
body.mfc-page .mfc .mfc-chip:focus-visible {
	border-color: var(--mfc-cyan);
	background: rgba(43, 200, 232, 0.08);
}

body.mfc-page .mfc .mfc-chip-k {
	color: var(--mfc-cyan-d);
	font-weight: 700;
}

body.mfc-page .mfc .mfc-msg {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-left: 4px solid var(--mfc-coral);
	border-radius: 8px;
	background: #fff4f5;
	color: #8a2633;
	font-weight: 600;
}

/* --------------------------------------------------------------- math */

body.mfc-page .mfc .mfc-f {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0.12em;
}

body.mfc-page .mfc .mfc-fs {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.15;
	font-size: 0.86em;
}

body.mfc-page .mfc .mfc-fn {
	display: block;
	padding: 0 0.2em 0.06em;
	border-bottom: 0.09em solid currentColor;
}

body.mfc-page .mfc .mfc-fd {
	display: block;
	padding: 0.06em 0.2em 0;
}

body.mfc-page .mfc .mfc-mx {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

body.mfc-page .mfc .mfc-w {
	margin-right: 0.08em;
}

body.mfc-page .mfc .mfc-op {
	display: inline-block;
	margin: 0 0.2em;
	color: var(--mfc-soft);
}

body.mfc-page .mfc .mfc-par {
	font-size: 1.35em;
	font-weight: 300;
	vertical-align: middle;
	color: var(--mfc-soft);
}

body.mfc-page .mfc .mfc-rep {
	text-decoration: overline;
	text-decoration-thickness: 0.08em;
}

/* ------------------------------------------------------------- result */

body.mfc-page .mfc .mfc-result {
	margin-top: 22px;
	padding: 22px 24px 18px;
	border-radius: 14px;
	background: linear-gradient(135deg, #0d1430 0%, #17234d 100%);
	color: #fff;
	transition: opacity 0.15s;
}

body.mfc-page .mfc .is-stale {
	opacity: 0.45;
}

body.mfc-page .mfc .mfc-kicker {
	margin: 0 0 6px;
	color: var(--mfc-cyan);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.mfc-page .mfc .mfc-result .mfc-op,
body.mfc-page .mfc .mfc-result .mfc-par {
	color: #9fb0d8;
}

body.mfc-page .mfc .mfc-answer-eq {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15em;
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
}

body.mfc-page .mfc .mfc-answer-big {
	color: #fff;
	font-size: 1.45em;
	font-weight: 800;
}

body.mfc-page .mfc .mfc-forms {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
}

body.mfc-page .mfc .mfc-form {
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
}

body.mfc-page .mfc .mfc-form dt {
	margin: 0 0 4px;
	color: #9fb0d8;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.mfc-page .mfc .mfc-form dd {
	margin: 0;
	color: #fff;
	font-size: 1.12rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

body.mfc-page .mfc .mfc-bars {
	margin: 16px 0 0;
	padding: 0;
}

body.mfc-page .mfc .mfc-bars svg {
	display: block;
	width: 100%;
	max-width: 640px;
	height: auto;
}

body.mfc-page .mfc .mfc-bar-fill {
	fill: var(--mfc-cyan);
}

body.mfc-page .mfc .mfc-bar-tick {
	stroke: rgba(13, 20, 48, 0.55);
	stroke-width: 1;
}

body.mfc-page .mfc .mfc-bar-box {
	fill: none;
	stroke: #9fb0d8;
	stroke-width: 1.5;
}

body.mfc-page .mfc .mfc-bars figcaption {
	margin-top: 6px;
	color: #9fb0d8;
	font-size: 0.85rem;
}

body.mfc-page .mfc .mfc-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

body.mfc-page .mfc .mfc-btn-s {
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: transparent;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
}

body.mfc-page .mfc .mfc-btn-s:hover,
body.mfc-page .mfc .mfc-btn-s:focus-visible {
	border-color: var(--mfc-cyan);
	color: var(--mfc-cyan);
}

body.mfc-page .mfc .mfc-toast {
	color: var(--mfc-cyan);
	font-size: 0.88rem;
	font-weight: 700;
}

/* --------------------------------------------------------------- steps */

body.mfc-page .mfc .mfc-work {
	margin-top: 26px;
	transition: opacity 0.15s;
}

body.mfc-page .mfc .mfc-work-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 8px;
}

body.mfc-page .t33-page-main .entry-content .mfc .mfc-work-title {
	margin: 0;
	padding: 0;
	color: var(--mfc-ink);
	font-size: 1.3rem;
	line-height: 1.3;
}

body.mfc-page .t33-page-main .entry-content .mfc .mfc-work-title::before {
	content: none;
}

body.mfc-page .mfc .mfc-method {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

body.mfc-page .mfc .mfc-method-label {
	color: var(--mfc-soft);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.mfc-page .mfc .mfc-seg {
	padding: 6px 12px;
	border: 1px solid var(--mfc-line);
	background: #fff;
	color: var(--mfc-soft);
	font-size: 0.85rem;
	font-weight: 600;
}

body.mfc-page .mfc .mfc-seg.is-on {
	border-color: var(--mfc-navy);
	background: var(--mfc-navy);
	color: #fff;
}

body.mfc-page .mfc .mfc-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mfc-step;
}

body.mfc-page .mfc .mfc-step {
	position: relative;
	margin: 0;
	padding: 16px 0 16px 46px;
	border-top: 1px solid var(--mfc-line);
	counter-increment: mfc-step;
}

body.mfc-page .mfc .mfc-step::before {
	content: counter(mfc-step);
	position: absolute;
	top: 15px;
	left: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--mfc-wash);
	border: 1.5px solid var(--mfc-cyan);
	color: var(--mfc-cyan-d);
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 27px;
	text-align: center;
}

body.mfc-page .mfc .mfc-step-title {
	margin: 2px 0 8px;
	color: var(--mfc-ink);
	font-size: 1.05rem;
	font-weight: 800;
}

body.mfc-page .mfc .mfc-tx {
	margin: 6px 0;
	color: var(--mfc-soft);
	font-size: 0.97rem;
	line-height: 1.6;
}

body.mfc-page .mfc .mfc-tx .mfc-f {
	font-size: 1.05em;
}

body.mfc-page .mfc .mfc-tx-sub {
	padding-left: 14px;
	border-left: 2px solid var(--mfc-line);
}

body.mfc-page .mfc .mfc-eq {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.1em;
	margin: 8px 0;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--mfc-wash);
	color: var(--mfc-ink);
	font-size: 1.22rem;
	font-weight: 600;
	overflow-x: auto;
}

body.mfc-page .mfc .mfc-eq sup {
	font-size: 0.65em;
}

/* --------------------------------------------------------------- check */

body.mfc-page .mfc .mfc-check {
	margin-top: 22px;
	padding: 16px 18px;
	border: 1px dashed #cdd4e1;
	border-radius: 12px;
}

body.mfc-page .mfc .mfc-check-title {
	margin: 0 0 8px;
	font-weight: 800;
}

body.mfc-page .mfc .mfc-check-row {
	display: flex;
	gap: 10px;
}

body.mfc-page .mfc .mfc-check-label {
	flex: 1 1 auto;
	margin: 0;
}

body.mfc-page .mfc .mfc-btn-check {
	flex: 0 0 auto;
	padding: 0 20px;
	border: 0;
	background: var(--mfc-navy);
	color: #fff;
}

body.mfc-page .mfc .mfc-btn-check:hover,
body.mfc-page .mfc .mfc-btn-check:focus-visible {
	background: var(--mfc-cyan-d);
	color: #fff;
}

body.mfc-page .mfc .mfc-check-out {
	min-height: 1.5em;
	margin: 8px 0 0;
	font-weight: 700;
}

body.mfc-page .mfc .mfc-check-out.is-ok {
	color: var(--mfc-ok);
}

body.mfc-page .mfc .mfc-check-out.is-near {
	color: var(--mfc-warn);
}

body.mfc-page .mfc .mfc-check-out.is-err {
	color: var(--mfc-err);
}

/* -------------------------------------------------------------- article */

body.mfc-page .t33-page-main .entry-content > .mfc-figure {
	max-width: 760px;
	margin: 1.6em auto;
}

body.mfc-page .t33-page-main .entry-content > table.mfc-table {
	width: 100%;
	max-width: 760px;
	margin: 1.4em auto;
	border-collapse: collapse;
	font-size: 0.97rem;
}

body.mfc-page .t33-page-main .entry-content > table.mfc-table th,
body.mfc-page .t33-page-main .entry-content > table.mfc-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e3e7ef;
	text-align: left;
	vertical-align: top;
}

body.mfc-page .t33-page-main .entry-content > table.mfc-table th {
	background: #f5f8fc;
	font-weight: 700;
}

body.mfc-page .t33-page-main .entry-content .mfc-kbd {
	padding: 1px 6px;
	border-radius: 5px;
	background: #f0f3f9;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.92em;
	white-space: nowrap;
}

body.mfc-page .t33-page-main .entry-content .mfc-over {
	text-decoration: overline;
}

/* --------------------------------------------------------------- phone */

@media (max-width: 720px) {
	body.mfc-page .mfc {
		padding: 18px 14px 18px;
		border-radius: 12px;
	}

	body.mfc-page .mfc .mfc-boxes {
		gap: 12px 8px;
	}

	body.mfc-page .mfc .mfc-term {
		gap: 4px;
		padding: 7px 7px;
	}

	body.mfc-page .mfc .mfc-in {
		width: 46px;
		height: 40px;
		font-size: 1.15rem;
	}

	body.mfc-page .mfc .mfc-in-w {
		width: 44px;
		height: 50px;
		font-size: 1.35rem;
	}

	body.mfc-page .mfc .mfc-frac-bar {
		width: 50px;
	}

	body.mfc-page .mfc .mfc-op-select {
		width: 40px;
		height: 40px;
		font-size: 1.3rem;
	}

	body.mfc-page .mfc .mfc-result {
		padding: 18px 16px 14px;
	}

	body.mfc-page .mfc .mfc-answer-eq {
		font-size: 1.25rem;
	}

	body.mfc-page .mfc .mfc-forms {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.mfc-page .mfc .mfc-step {
		padding-left: 0;
	}

	body.mfc-page .mfc .mfc-step::before {
		top: 16px;
	}

	body.mfc-page .mfc .mfc-step-title {
		display: flex;
		align-items: center;
		min-height: 30px;
		padding-left: 42px;
	}

	body.mfc-page .mfc .mfc-examples {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-right: -14px;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	body.mfc-page .mfc .mfc-examples-label {
		flex: 0 0 auto;
	}

	body.mfc-page .mfc .mfc-eq {
		font-size: 1.08rem;
		padding: 8px 10px;
	}
}

/* >>> t33 tool-page shell v1 (generated - edit _shared/toolpage-shell.css) */

/*
 * Makes the lift the card's own. Without a block formatting context the card's
 * negative margin collapses out through `.entry-content`, `article` and
 * `.t33-page-main` -- none of which has top padding -- and lands on `.wrap`,
 * moving the entire column instead of the one element. Measured on the live
 * page before this line existed: `.wrap` top and card top were both 300px, so
 * the declared -72px was in effect on the wrong element and no gate could see
 * the difference.
 */
body.mfc-page .t33-page-main .entry-content {
	display: flow-root;
}

/*
 * The prose measure. Enumerated by tag rather than written as
 * `> *:not(.mfc)`, which is what the word search shipped first: a
 * :not() selector also narrows MEDIAVINE'S INJECTED CONTAINERS to 760px,
 * quietly shrinking every in-content unit on the page. Ad units, the tool and
 * the tool strip are divs and navs, so enumerating prose tags leaves them at
 * full column width.
 *
 * `:is()` takes the specificity of its heaviest argument -- a type selector,
 * (0,0,1) -- so this lands at (0,3,2) and beats ruki-child's (0,3,1).
 */
body.mfc-page .t33-page-main .entry-content > :is(p, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, figure, pre) {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/*
 * Room for the card to land in. The theme ships `padding: 170px 0 90px`; the
 * extra bottom padding here is spent by the lift below, so the title keeps the
 * breathing room it has today and the tool does not move down the page.
 */
body.mfc-page .t33-page-hero {
	padding-bottom: 132px;
}

/*
 * The lift. Mirrors `.t33-article-media`, which is what the theme already does
 * with a featured image on every other page of the site.
 *
 * The hero is a sibling of `.wrap`, not an ancestor, so its `overflow: hidden`
 * cannot clip this; and it carries no `z-index`, so `z-index: 5` here paints
 * over it. Both of those are the theme's own assumptions -- `.t33-article-media`
 * relies on exactly the same two facts.
 *
 * The ring in the first shadow is load-bearing, not decoration. The word
 * search board's background is #070b1a, byte-identical to the band's bottom
 * gradient stop (--t33-navy-1), so without a hairline the lifted panel would
 * dissolve into the band instead of sitting on it.
 *
 * `border-radius` is deliberately NOT set: each tool keeps its own (18px for
 * the board, 10px for the drill card), and the word search flattens it to 0
 * when the board goes full-bleed on a phone.
 *
 * `:first-child` is a safety catch, not tidiness. If Journey ever inserts a
 * unit at the very top of `.entry-content`, the tool stops being the first
 * child and the lift drops -- which is the right failure. Without it the tool
 * would keep its -72px and ride up over the ad unit.
 */
body.mfc-page .t33-page-main .entry-content > .mfc:first-child {
	position: relative;
	z-index: 5;
	margin-top: -72px;
	box-shadow:
		0 0 0 1px rgba(232, 238, 252, 0.18),
		0 26px 60px rgba(7, 11, 26, 0.45);
}

/*
 * The first paragraph after the tool carries the page. It is still a top-level
 * child of `.entry-content` -- only its type scale changed.
 */
body.mfc-page .t33-page-main .entry-content > .mfc + p {
	font-size: 1.18rem;
	line-height: 1.7;
	color: var(--t33-ink-soft, #5a6378);
}

/*
 * Section headings get an accent marker instead of being a bare bold line.
 * `::before` is used rather than a wrapper element precisely because a wrapper
 * would swallow an ad slot.
 */
body.mfc-page .t33-page-main .entry-content > h2 {
	position: relative;
	padding-top: 22px;
	margin-top: 2.4em;
}

body.mfc-page .t33-page-main .entry-content > h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 54px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--t33-cyan, #2bc8e8), var(--t33-coral, #f67280));
}

/*
 * FAQ pairs, styled through an adjacent-sibling selector. A `<details>` or a
 * wrapper would read better in isolation and cost an ad slot per question.
 */
body.mfc-page .t33-page-main .entry-content > h3 {
	margin-top: 1.8em;
	font-size: 1.22rem;
}

body.mfc-page .t33-page-main .entry-content > h3 + p {
	border-left: 3px solid rgba(43, 200, 232, 0.35);
	padding-left: 16px;
	color: var(--t33-ink-soft, #5a6378);
}

/*
 * Opt-in callout, applied to a top-level <p> in the content/*.html articles.
 * content-check.js balances tags and never inspects attributes, so adding a
 * class to those files is safe.
 */
body.mfc-page .t33-page-main .entry-content > p.t33-callout {
	background: var(--t33-paper-soft, #fff7f3);
	border-left: 4px solid var(--t33-coral, #f67280);
	border-radius: 0 var(--t33-radius, 14px) var(--t33-radius, 14px) 0;
	padding: 18px 22px;
	font-size: 1.02rem;
}

body.mfc-page .t33-page-main .entry-content > ul > li::marker,
body.mfc-page .t33-page-main .entry-content > ol > li::marker {
	color: var(--t33-cyan, #2bc8e8);
}

/* -------------------------------------------------- more science tools --- */

/*
 * Appended by a `the_content` filter, so it is a top-level child of
 * `.entry-content` like any other -- it ADDS an ad boundary rather than
 * removing one, and it reaches pages that do not exist yet.
 */
body.mfc-page .t33-page-main .entry-content > .t33-toolstrip {
	margin-top: 3em;
	padding-top: 1.6em;
	border-top: 1px solid #e3e7ef;
}

body.mfc-page .entry-content .t33-toolstrip-title {
	margin: 0 0 1em;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--t33-ink-soft, #5a6378);
}

body.mfc-page .entry-content .t33-toolstrip-list {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

body.mfc-page .entry-content .t33-toolstrip-list li {
	margin: 0;
}

body.mfc-page .entry-content .t33-toolstrip-card {
	display: block;
	height: 100%;
	padding: 16px 18px;
	background: var(--t33-paper, #fff);
	border: 1px solid #e3e7ef;
	border-radius: var(--t33-radius, 14px);
	box-shadow: var(--t33-shadow, 0 10px 30px rgba(7, 11, 26, 0.10));
	color: var(--t33-ink, #1b2233);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.mfc-page .entry-content .t33-toolstrip-card:hover {
	color: var(--t33-ink, #1b2233);
	transform: translateY(-2px);
	box-shadow: var(--t33-shadow-lift, 0 18px 44px rgba(7, 11, 26, 0.16));
}

body.mfc-page .entry-content .t33-toolstrip-name {
	display: block;
	font-weight: 800;
	font-size: 1.02rem;
	margin-bottom: 4px;
}

body.mfc-page .entry-content .t33-toolstrip-what {
	display: block;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--t33-ink-soft, #5a6378);
}

/* ------------------------------------------------------------- phone ---- */

/* 600px is the theme's own hero breakpoint, not a new one. */
@media (max-width: 600px) {

	/*
	 * The phone gutter, reclaimed. The theme gutters this column twice -- the
	 * parent theme's bare `.entry-content { padding: 0 30px }` plus
	 * `.t33-page-main`'s own 18px -- so on a 390px phone the tool had 314px to
	 * work with and lost 76px, a fifth of the screen, to empty margin. Measured,
	 * not guessed.
	 *
	 * 12px rather than 0: the prose inside this column still needs an edge, and
	 * every tool card carries its own padding on top of this. Ad containers are
	 * children of `.entry-content` too, so they get the width back as well.
	 */
	body.mfc-page .t33-page-main {
		padding-left: 8px;
		padding-right: 8px;
	}

	body.mfc-page .t33-page-main .entry-content {
		padding-left: 12px;
		padding-right: 12px;
	}

	body.mfc-page .t33-page-hero {
		padding-bottom: 88px;
	}

	body.mfc-page .t33-page-main .entry-content > .mfc:first-child {
		margin-top: -44px;
	}

	body.mfc-page .t33-page-main .entry-content > .mfc + p {
		font-size: 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {

	body.mfc-page .entry-content .t33-toolstrip-card {
		transition: none;
	}

	body.mfc-page .entry-content .t33-toolstrip-card:hover {
		transform: none;
	}
}

/* <<< t33 tool-page shell */
