/*
 * Screen styles for the Standard Deviation Calculator.
 *
 * EVERY RULE IS PREFIXED `body.sdc-page`: ruki-child styles
 * `.t33-page-main .entry-content a`, h1-h6, table and `code` at (0,3,1) or
 * bare, and the parent theme turns any bare `code` into a full-width barred
 * block. Text elements set their own colour. No important-flags.
 *
 * SHAPE. One card, three bands: inputs (paper), answer (navy), working
 * (paper). The shared shell lifts the root onto the hero like a featured
 * image, so the root carries its own radius and clips its bands.
 */

body.sdc-page .sdc {
	--sdc-ink: #1b2233;
	--sdc-soft: #5a6378;
	--sdc-cyan: #2bc8e8;
	--sdc-cyan-ink: #0a7f99;
	--sdc-coral: #f67280;
	--sdc-amber: #f2a541;
	--sdc-navy: #070b1a;
	--sdc-navy-2: #111a35;
	--sdc-line: #e3e7ef;
	--sdc-paper-2: #f6f8fc;

	position: relative;
	margin: 0 0 1.75rem;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	color: var(--sdc-ink);
	font-size: 1rem;
	line-height: 1.5;
}

body.sdc-page .sdc * {
	box-sizing: border-box;
}

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

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

body.sdc-page .sdc p {
	margin: 0;
	color: inherit;
}

/* ------------------------------------------------------------ inputs --- */

body.sdc-page .sdc .sdc-in {
	padding: 22px 26px 20px;
}

body.sdc-page .sdc .sdc-tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 16px;
	padding: 4px;
	background: var(--sdc-paper-2);
	border: 1px solid var(--sdc-line);
	border-radius: 12px;
	overflow-x: auto;
}

body.sdc-page .sdc .sdc-tab {
	flex: 1 1 0;
	min-width: max-content;
	margin: 0;
	padding: 9px 14px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--sdc-soft);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

body.sdc-page .sdc .sdc-tab:hover {
	color: var(--sdc-ink);
	background: rgba(43, 200, 232, 0.08);
}

body.sdc-page .sdc .sdc-tab.is-on {
	background: #fff;
	color: var(--sdc-ink);
	box-shadow: 0 1px 3px rgba(7, 11, 26, 0.12), 0 0 0 1px var(--sdc-line);
}

body.sdc-page .sdc .sdc-field {
	display: block;
	margin: 0;
}

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

body.sdc-page .sdc .sdc-text,
body.sdc-page .sdc .sdc-num,
body.sdc-page .sdc .sdc-select {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid #c9d1e3;
	border-radius: 12px;
	background: #fff;
	color: var(--sdc-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1.05rem;
	line-height: 1.5;
	box-shadow: none;
}

body.sdc-page .sdc .sdc-text {
	min-height: 104px;
	resize: vertical;
}

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

body.sdc-page .sdc .sdc-read {
	min-height: 1.5em;
	margin: 8px 0 0;
	font-size: 0.92rem;
	color: var(--sdc-soft);
}

body.sdc-page .sdc .sdc-read strong {
	color: var(--sdc-ink);
}

body.sdc-page .sdc .sdc-sums {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

body.sdc-page .sdc .sdc-opts {
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px dashed var(--sdc-line);
}

body.sdc-page .sdc .sdc-seg {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

body.sdc-page .sdc .sdc-seg-label {
	font-weight: 800;
	margin-right: 4px;
}

body.sdc-page .sdc .sdc-seg-opt {
	position: relative;
	margin: 0;
	cursor: pointer;
}

body.sdc-page .sdc .sdc-seg-opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

body.sdc-page .sdc .sdc-seg-opt span {
	display: inline-block;
	padding: 8px 16px;
	border: 1.5px solid #c9d1e3;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--sdc-soft);
	background: #fff;
}

body.sdc-page .sdc .sdc-seg-opt input:checked + span {
	border-color: var(--sdc-navy);
	background: var(--sdc-navy);
	color: #fff;
}

body.sdc-page .sdc .sdc-seg-opt input:focus-visible + span {
	box-shadow: 0 0 0 3px rgba(43, 200, 232, 0.45);
}

body.sdc-page .sdc .sdc-which {
	margin: 10px 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--sdc-soft);
}

body.sdc-page .sdc .sdc-which strong {
	color: var(--sdc-ink);
}

body.sdc-page .sdc .sdc-more-opts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin: 14px 0 0;
}

body.sdc-page .sdc .sdc-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.95rem;
	color: var(--sdc-ink);
}

body.sdc-page .sdc .sdc-inline .sdc-select {
	width: auto;
	padding: 6px 10px;
	font-family: inherit;
	font-size: 0.95rem;
}

body.sdc-page .sdc .sdc-tick-opt input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--sdc-navy);
}

body.sdc-page .sdc .sdc-num-sm {
	width: 7.5em;
	padding: 6px 10px;
	font-size: 0.98rem;
}

body.sdc-page .sdc .sdc-btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
}

body.sdc-page .sdc .sdc-btn,
body.sdc-page .sdc .sdc-copy {
	margin: 0;
	padding: 8px 14px;
	border: 1.5px solid #c9d1e3;
	border-radius: 10px;
	background: #fff;
	color: var(--sdc-ink);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

body.sdc-page .sdc .sdc-btn:hover {
	border-color: var(--sdc-cyan);
	color: var(--sdc-ink);
	background: #fff;
}

body.sdc-page .sdc .sdc-btn-main {
	border-color: var(--sdc-navy);
	background: var(--sdc-navy);
	color: #fff;
}

body.sdc-page .sdc .sdc-btn-main:hover {
	background: var(--sdc-navy-2);
	color: #fff;
}

body.sdc-page .sdc .sdc-toast {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--sdc-cyan-ink);
	opacity: 0;
	transition: opacity 0.2s ease;
}

body.sdc-page .sdc .sdc-toast.is-on {
	opacity: 1;
}

/* ------------------------------------------------------------ answer --- */

body.sdc-page .sdc .sdc-out {
	padding: 24px 26px 22px;
	background: radial-gradient(120% 140% at 0% 0%, #1a2550 0%, var(--sdc-navy) 62%);
	color: #e8eefc;
}

body.sdc-page .sdc .sdc-answers {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 14px;
}

body.sdc-page .sdc .sdc-answer {
	position: relative;
	padding: 16px 18px 14px;
	border: 1px solid rgba(232, 238, 252, 0.16);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
}

body.sdc-page .sdc .sdc-answer.is-primary {
	border-color: rgba(43, 200, 232, 0.6);
	background: rgba(43, 200, 232, 0.10);
}

body.sdc-page .sdc .sdc-answer-label {
	padding-right: 64px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #b8c3e0;
}

body.sdc-page .sdc .sdc-sym {
	font-style: italic;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.05rem;
	color: var(--sdc-cyan);
}

body.sdc-page .sdc .sdc-answer-value {
	margin: 4px 0 2px;
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #fff;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

body.sdc-page .sdc .sdc-answer:not(.is-primary) .sdc-answer-value {
	font-size: 1.75rem;
	color: #dfe6f8;
}

body.sdc-page .sdc .sdc-answer-note {
	font-size: 0.84rem;
	color: #9aa6c6;
}

body.sdc-page .sdc .sdc-answer .sdc-copy {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 5px 10px;
	border-color: rgba(232, 238, 252, 0.3);
	background: transparent;
	color: #e8eefc;
	font-size: 0.8rem;
}

body.sdc-page .sdc .sdc-answer .sdc-copy:hover {
	border-color: var(--sdc-cyan);
	color: #fff;
}

body.sdc-page .sdc .sdc-answer.is-na .sdc-answer-value {
	color: #6d7898;
}

body.sdc-page .sdc .sdc-meaning {
	margin: 14px 0 0;
	font-size: 1rem;
	line-height: 1.55;
	color: #dfe6f8;
}

body.sdc-page .sdc .sdc-meaning strong {
	color: #fff;
}

body.sdc-page .sdc .sdc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1px;
	margin: 16px 0 0;
	padding: 0;
	border: 1px solid rgba(232, 238, 252, 0.14);
	border-radius: 14px;
	overflow: hidden;
	background: transparent;
}

body.sdc-page .sdc .sdc-stat {
	padding: 10px 14px;
	background: var(--sdc-navy);
	box-shadow: 0 0 0 1px rgba(232, 238, 252, 0.14);
}

body.sdc-page .sdc .sdc-stat dt {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: #9aa6c6;
}

body.sdc-page .sdc .sdc-stat dd {
	margin: 2px 0 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

body.sdc-page .sdc .sdc-out .sdc-dim {
	font-weight: 400;
	color: #8f9bbd;
}

body.sdc-page .sdc .sdc-xbar {
	text-decoration: overline;
	font-style: italic;
}

body.sdc-page .sdc .sdc-empty {
	padding: 18px 0;
	font-size: 1.05rem;
	color: #dfe6f8;
}

body.sdc-page .sdc .sdc-err {
	color: #ffb4bc;
}

/* plot */

body.sdc-page .sdc .sdc-r-plot:not(:empty) {
	margin: 16px 0 0;
}

body.sdc-page .sdc .sdc-plot {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

body.sdc-page .sdc .sdc-band1 {
	fill: rgba(43, 200, 232, 0.22);
}

body.sdc-page .sdc .sdc-band2 {
	fill: rgba(43, 200, 232, 0.08);
}

body.sdc-page .sdc .sdc-axis,
body.sdc-page .sdc .sdc-tick {
	stroke: #6d7898;
	stroke-width: 1;
}

body.sdc-page .sdc .sdc-tick-label,
body.sdc-page .sdc .sdc-meanlabel {
	fill: #9aa6c6;
	font-size: 12px;
	text-anchor: middle;
	font-family: inherit;
}

body.sdc-page .sdc .sdc-meanlabel {
	fill: var(--sdc-cyan);
	font-weight: 700;
}

body.sdc-page .sdc .sdc-meanline {
	stroke: var(--sdc-cyan);
	stroke-width: 2;
	stroke-dasharray: 4 3;
}

body.sdc-page .sdc .sdc-dot {
	fill: #e8eefc;
	stroke: var(--sdc-navy);
	stroke-width: 1;
}

body.sdc-page .sdc .sdc-dot.is-mid {
	fill: var(--sdc-amber);
}

body.sdc-page .sdc .sdc-dot.is-far {
	fill: var(--sdc-coral);
}

body.sdc-page .sdc .sdc-legend {
	margin: 6px 0 0;
	font-size: 0.82rem;
	color: #9aa6c6;
}

body.sdc-page .sdc .sdc-key {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 5px 0 10px;
	border-radius: 50%;
	vertical-align: -1px;
}

body.sdc-page .sdc .sdc-key1 {
	margin-left: 0;
	background: #e8eefc;
}

body.sdc-page .sdc .sdc-key2 {
	background: var(--sdc-amber);
}

body.sdc-page .sdc .sdc-key3 {
	background: var(--sdc-coral);
}

body.sdc-page .sdc .sdc-rule-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	color: #dfe6f8;
}

body.sdc-page .sdc .sdc-rule-list li {
	margin: 0;
	padding: 0;
}

body.sdc-page .sdc .sdc-rule-list li::before {
	content: none;
}

body.sdc-page .sdc .sdc-rule-list strong {
	color: #fff;
}

body.sdc-page .sdc .sdc-rule {
	margin: 10px 0 0;
	color: #dfe6f8;
}

/* ------------------------------------------------------------ working --- */

body.sdc-page .sdc .sdc-work {
	padding: 22px 26px 24px;
	background: #fff;
}

body.sdc-page .sdc .sdc-work-title {
	margin: 0 0 12px;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sdc-soft);
}

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

body.sdc-page .sdc .sdc-steps > li {
	position: relative;
	margin: 0;
	padding: 0 0 16px 44px;
	counter-increment: sdc-step;
}

body.sdc-page .sdc .sdc-steps > li::before {
	content: counter(sdc-step);
	position: absolute;
	top: -1px;
	left: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sdc-navy);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 28px;
	text-align: center;
}

body.sdc-page .sdc .sdc-steps > li::after {
	content: "";
	position: absolute;
	top: 30px;
	bottom: 4px;
	left: 13.5px;
	width: 1px;
	background: var(--sdc-line);
}

body.sdc-page .sdc .sdc-steps > li:last-child::after {
	content: none;
}

body.sdc-page .sdc .sdc-step-title {
	margin: 0 0 6px;
	font-weight: 800;
	color: var(--sdc-ink);
}

body.sdc-page .sdc .sdc-math {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.12rem;
	line-height: 1.6;
	color: var(--sdc-ink);
	overflow-wrap: anywhere;
}

body.sdc-page .sdc .sdc-math-final {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 10px;
	background: rgba(43, 200, 232, 0.12);
	font-weight: 700;
}

body.sdc-page .sdc .sdc-hint,
body.sdc-page .sdc .sdc-other,
body.sdc-page .sdc .sdc-check {
	margin: 6px 0 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--sdc-soft);
}

body.sdc-page .sdc .sdc-other {
	margin: 4px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--sdc-paper-2);
	color: var(--sdc-ink);
}

body.sdc-page .sdc .sdc-check {
	margin: 12px 0 0;
}

body.sdc-page .sdc .sdc-check strong,
body.sdc-page .sdc .sdc-other strong {
	color: var(--sdc-ink);
}

body.sdc-page .sdc .sdc-warn {
	margin: 6px 0 0;
	padding: 8px 12px;
	border-left: 3px solid var(--sdc-amber);
	background: #fff8ec;
	font-size: 0.9rem;
	color: var(--sdc-ink);
}

/* The parent theme styles bare `code` as a block sample; put it back inline. */
body.sdc-page .sdc code.sdc-code {
	display: inline;
	margin: 0;
	padding: 1px 6px;
	border: 0;
	border-radius: 6px;
	background: #eef1f8;
	color: var(--sdc-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88em;
	white-space: nowrap;
}

body.sdc-page .sdc .sdc-table-wrap {
	width: fit-content;
	min-width: min(100%, 420px);
	max-width: 100%;
	max-height: 420px;
	margin: 4px 0 0;
	overflow: auto;
	border: 1px solid var(--sdc-line);
	border-radius: 12px;
}

body.sdc-page .sdc .sdc-table-wrap:focus-visible {
	outline: 3px solid rgba(43, 200, 232, 0.45);
}

body.sdc-page .sdc .sdc-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

body.sdc-page .sdc .sdc-table th,
body.sdc-page .sdc .sdc-table td {
	padding: 7px 12px;
	border: 0;
	border-bottom: 1px solid var(--sdc-line);
	text-align: right;
	white-space: nowrap;
	color: var(--sdc-ink);
	background: transparent;
}

body.sdc-page .sdc .sdc-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--sdc-paper-2);
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--sdc-soft);
}

body.sdc-page .sdc .sdc-table tbody td:first-child {
	color: var(--sdc-soft);
}

body.sdc-page .sdc .sdc-table tfoot th,
body.sdc-page .sdc .sdc-table tfoot td {
	position: sticky;
	bottom: 0;
	background: #eef1f8;
	font-weight: 800;
	border-bottom: 0;
}

body.sdc-page .sdc .sdc-table tr.is-far td {
	background: #fff1f2;
}

body.sdc-page .sdc .sdc-table .sdc-more td {
	text-align: left;
	white-space: normal;
	color: var(--sdc-soft);
	font-style: italic;
}

body.sdc-page .sdc .sdc-work .sdc-dim {
	color: var(--sdc-soft);
	font-size: 0.85em;
}

body.sdc-page .sdc .sdc-btns-work {
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px dashed var(--sdc-line);
}

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

@media (max-width: 600px) {

	body.sdc-page .sdc {
		border-radius: 16px;
	}

	body.sdc-page .sdc .sdc-in,
	body.sdc-page .sdc .sdc-out,
	body.sdc-page .sdc .sdc-work {
		padding-left: 16px;
		padding-right: 16px;
	}

	body.sdc-page .sdc .sdc-tab {
		min-width: 0;
		padding: 8px 4px;
		font-size: 0.84rem;
		white-space: normal;
	}

	body.sdc-page .sdc .sdc-answers {
		grid-template-columns: 1fr;
	}

	body.sdc-page .sdc .sdc-answer-value {
		font-size: 2.1rem;
	}

	body.sdc-page .sdc .sdc-sums {
		grid-template-columns: 1fr;
	}

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

	body.sdc-page .sdc .sdc-steps > li {
		padding-left: 38px;
	}

	body.sdc-page .sdc .sdc-math {
		font-size: 1.02rem;
	}
}

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

	body.sdc-page .sdc .sdc-toast {
		transition: none;
	}
}

/* >>> 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.sdc-page .t33-page-main .entry-content {
	display: flow-root;
}

/*
 * The prose measure. Enumerated by tag rather than written as
 * `> *:not(.sdc)`, 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.sdc-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.sdc-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.sdc-page .t33-page-main .entry-content > .sdc: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.sdc-page .t33-page-main .entry-content > .sdc + 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.sdc-page .t33-page-main .entry-content > h2 {
	position: relative;
	padding-top: 22px;
	margin-top: 2.4em;
}

body.sdc-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.sdc-page .t33-page-main .entry-content > h3 {
	margin-top: 1.8em;
	font-size: 1.22rem;
}

body.sdc-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.sdc-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.sdc-page .t33-page-main .entry-content > ul > li::marker,
body.sdc-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.sdc-page .t33-page-main .entry-content > .t33-toolstrip {
	margin-top: 3em;
	padding-top: 1.6em;
	border-top: 1px solid #e3e7ef;
}

body.sdc-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.sdc-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.sdc-page .entry-content .t33-toolstrip-list li {
	margin: 0;
}

body.sdc-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.sdc-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.sdc-page .entry-content .t33-toolstrip-name {
	display: block;
	font-weight: 800;
	font-size: 1.02rem;
	margin-bottom: 4px;
}

body.sdc-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.sdc-page .t33-page-main {
		padding-left: 8px;
		padding-right: 8px;
	}

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

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

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

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

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

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

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

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