/*
 * Tank Volume Calculator.
 *
 * Every rule is prefixed `body.tvc-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.
 * `font: ... inherit` is invalid shorthand: font-family is always its own line.
 */

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

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

body.tvc-page .tvc [hidden],
body.tvc-page .tvc .tvc-field[hidden] {
	display: none;
}

body.tvc-page .tvc button {
	font-family: inherit;
	cursor: pointer;
}

/* --------------------------------------------------------------- shapes */

body.tvc-page .tvc .tvc-shapes {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 20px;
}

body.tvc-page .tvc .tvc-shape {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 10px 6px 9px;
	border: 1.5px solid var(--tvc-line);
	border-radius: 12px;
	background: #fff;
	color: var(--tvc-soft);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

body.tvc-page .tvc .tvc-shape:hover {
	border-color: #b9c6dc;
	color: var(--tvc-ink);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(13, 20, 48, 0.08);
}

body.tvc-page .tvc .tvc-shape.is-on {
	border-color: var(--tvc-cyan);
	background: #ecfaff;
	color: var(--tvc-navy);
	box-shadow: 0 0 0 3px rgba(43, 200, 232, 0.18);
}

body.tvc-page .tvc .tvc-shape:focus-visible,
body.tvc-page .tvc .tvc-chip:focus-visible,
body.tvc-page .tvc .tvc-btn:focus-visible,
body.tvc-page .tvc .tvc-segb:focus-visible,
body.tvc-page .tvc summary:focus-visible {
	outline: 3px solid rgba(43, 200, 232, 0.55);
	outline-offset: 2px;
}

body.tvc-page .tvc .tvc-ico {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linejoin: round;
	stroke-linecap: round;
}

body.tvc-page .tvc .tvc-shape.is-on .tvc-ico {
	stroke: var(--tvc-cyan-d);
	fill: rgba(43, 200, 232, 0.12);
}

/* ---------------------------------------------------------------- main */

body.tvc-page .tvc .tvc-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: 24px;
	align-items: start;
}

body.tvc-page .tvc .tvc-shape-name {
	margin: 0 0 14px;
	color: var(--tvc-soft);
	font-size: 0.92rem;
	line-height: 1.45;
}

body.tvc-page .tvc .tvc-shape-name strong {
	display: block;
	color: var(--tvc-navy);
	font-size: 1.12rem;
}

body.tvc-page .tvc .tvc-field {
	display: block;
	margin: 0;
	min-width: 0;
}

body.tvc-page .tvc .tvc-label {
	display: block;
	margin-bottom: 5px;
	color: var(--tvc-soft);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

body.tvc-page .tvc .tvc-units,
body.tvc-page .tvc .tvc-dims,
body.tvc-page .tvc .tvc-more {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

body.tvc-page .tvc .tvc-dims {
	padding: 14px;
	border-radius: 14px;
	background: var(--tvc-wash);
}

body.tvc-page .tvc .tvc-dim-f {
	animation: tvc-in 0.35s ease both;
}

body.tvc-page .tvc .tvc-dim-f:nth-child(2) { animation-delay: 0.04s; }
body.tvc-page .tvc .tvc-dim-f:nth-child(3) { animation-delay: 0.08s; }
body.tvc-page .tvc .tvc-dim-f:nth-child(4) { animation-delay: 0.12s; }

body.tvc-page .tvc .tvc-inwrap {
	position: relative;
	display: block;
}

body.tvc-page .tvc .tvc-input,
body.tvc-page .tvc .tvc-select {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 1.5px solid #cdd4e1;
	border-radius: 10px;
	background-color: #fff;
	color: var(--tvc-ink);
	font-family: inherit;
	font-size: 1.02rem;
	font-weight: 600;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

body.tvc-page .tvc .tvc-inwrap .tvc-input {
	padding-right: 46px;
}

body.tvc-page .tvc .tvc-select {
	padding-right: 32px;
	font-size: 0.95rem;
	font-weight: 500;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a6378' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	text-overflow: ellipsis;
}

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

body.tvc-page .tvc .tvc-input.is-bad {
	border-color: var(--tvc-err);
	box-shadow: 0 0 0 3px rgba(194, 59, 74, 0.14);
}

body.tvc-page .tvc .tvc-suffix {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	color: var(--tvc-faint);
	font-size: 0.9rem;
	font-weight: 600;
	pointer-events: none;
}

body.tvc-page .tvc .tvc-hint {
	display: block;
	margin-top: 4px;
	color: var(--tvc-faint);
	font-size: 0.78rem;
	line-height: 1.35;
}

/* fill */

body.tvc-page .tvc .tvc-fill {
	margin-bottom: 14px;
	padding: 14px;
	border: 1.5px solid #d7f1f8;
	border-radius: 14px;
	background: #f4fcff;
}

body.tvc-page .tvc .tvc-fill-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

body.tvc-page .tvc .tvc-fill-head .tvc-label {
	margin: 0;
}

body.tvc-page .tvc .tvc-seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 999px;
	background: #e2f3f9;
}

body.tvc-page .tvc .tvc-segb {
	margin: 0;
	padding: 4px 11px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--tvc-soft);
	font-size: 0.78rem;
	font-weight: 700;
	transition: background-color 0.2s, color 0.2s;
}

body.tvc-page .tvc .tvc-segb.is-on {
	background: #fff;
	color: var(--tvc-navy);
	box-shadow: 0 1px 4px rgba(13, 20, 48, 0.12);
}

body.tvc-page .tvc .tvc-fill-row {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

body.tvc-page .tvc .tvc-range {
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	--p: 50%;
}

body.tvc-page .tvc .tvc-range::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--tvc-cyan) var(--p), #d3e3ec var(--p));
}

body.tvc-page .tvc .tvc-range::-moz-range-track {
	height: 8px;
	border-radius: 8px;
	background: #d3e3ec;
}

body.tvc-page .tvc .tvc-range::-moz-range-progress {
	height: 8px;
	border-radius: 8px;
	background: var(--tvc-cyan);
}

body.tvc-page .tvc .tvc-range::-webkit-slider-thumb {
	width: 24px;
	height: 24px;
	margin-top: -8px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--tvc-cyan-d);
	box-shadow: 0 2px 8px rgba(13, 20, 48, 0.3);
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.15s;
}

body.tvc-page .tvc .tvc-range:active::-webkit-slider-thumb {
	transform: scale(1.15);
}

body.tvc-page .tvc .tvc-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--tvc-cyan-d);
	box-shadow: 0 2px 8px rgba(13, 20, 48, 0.3);
}

body.tvc-page .tvc .tvc-flow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 92px;
	gap: 6px;
}

body.tvc-page .tvc .tvc-more {
	margin-bottom: 0;
}

/* -------------------------------------------------------------- visual */

body.tvc-page .tvc .tvc-visual {
	position: relative;
	border-radius: 16px;
	background:
		radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #eef4fb 60%, #e4ecf6 100%);
	overflow: hidden;
}

body.tvc-page .tvc .tvc-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(13, 20, 48, 0.07) 1px, transparent 1px);
	background-size: 18px 18px;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}

body.tvc-page .tvc .tvc-svg {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.25s ease;
}

body.tvc-page .tvc .tvc-visual.is-swap .tvc-svg {
	opacity: 0;
}

body.tvc-page .tvc .tvc-shadow { fill: rgba(13, 20, 48, 0.1); }
body.tvc-page .tvc .tvc-back { fill: #d6dfec; stroke: #9aa8bf; stroke-width: 1; stroke-linejoin: round; }
body.tvc-page .tvc .tvc-body { fill: rgba(221, 230, 242, 0.75); stroke: none; }
body.tvc-page .tvc .tvc-glass { fill: rgba(255, 255, 255, 0.55); stroke: none; }
body.tvc-page .tvc .tvc-liq { fill: var(--liq); }
body.tvc-page .tvc .tvc-liq-back { fill: var(--liq-d); opacity: 0.85; }
body.tvc-page .tvc .tvc-liq-top { fill: var(--liq-l); stroke: var(--liq-d); stroke-width: 0.8; stroke-linejoin: round; }
body.tvc-page .tvc .tvc-liq-line { stroke: var(--liq-l); stroke-width: 3; stroke-linecap: round; }
body.tvc-page .tvc .tvc-hidden { fill: none; stroke: #0d1430; stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.35; }
body.tvc-page .tvc .tvc-rim { fill: none; stroke: #0d1430; stroke-width: 1.8; stroke-linejoin: round; }
body.tvc-page .tvc .tvc-edge { fill: none; stroke: #0d1430; stroke-width: 1.8; stroke-linejoin: round; }
body.tvc-page .tvc .tvc-lid { fill: rgba(255, 255, 255, 0.35); stroke: #0d1430; stroke-width: 1.4; }
body.tvc-page .tvc .tvc-rimline { fill: none; stroke: #0d1430; stroke-width: 1.2; opacity: 0.55; }
body.tvc-page .tvc .tvc-shine { fill: rgba(255, 255, 255, 0.55); }
body.tvc-page .tvc .tvc-bub { fill: rgba(255, 255, 255, 0.75); opacity: 0; }

body.tvc-page .tvc .tvc-dim line { stroke: #6b7690; stroke-width: 1.1; }
body.tvc-page .tvc .tvc-dim text,
body.tvc-page .tvc .tvc-mark text {
	fill: #3b4560;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
}
body.tvc-page .tvc .tvc-mark line { stroke: var(--tvc-cyan-d); stroke-width: 2; }
body.tvc-page .tvc .tvc-mark polygon { fill: var(--tvc-cyan-d); }
body.tvc-page .tvc .tvc-mark text { fill: var(--tvc-cyan-d); }

/* idle motion: a slow bob of the surface, rising bubbles */
body.tvc-page .tvc .tvc-surf {
	transform-box: fill-box;
	transform-origin: 50% 50%;
	animation: tvc-bob 3.2s ease-in-out infinite;
}

body.tvc-page .tvc .tvc-bub {
	animation: tvc-rise var(--d, 3s) ease-in var(--dl, 0s) infinite;
}

body.tvc-page .tvc .tvc-visual.is-slosh .tvc-surf {
	animation: tvc-slosh 1.1s ease-out 1, tvc-bob 3.2s ease-in-out 1.1s infinite;
}

@keyframes tvc-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-1.6px); }
}

@keyframes tvc-slosh {
	0% { transform: rotate(0deg); }
	20% { transform: rotate(-2.6deg); }
	45% { transform: rotate(1.8deg); }
	70% { transform: rotate(-0.8deg); }
	100% { transform: rotate(0deg); }
}

@keyframes tvc-rise {
	0% { transform: translateY(0); opacity: 0; }
	15% { opacity: 0.9; }
	85% { opacity: 0.7; }
	100% { transform: translateY(var(--rise, -40px)); opacity: 0; }
}

@keyframes tvc-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* presets */

body.tvc-page .tvc .tvc-presets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
}

body.tvc-page .tvc .tvc-presets-l {
	margin-right: 2px;
	color: var(--tvc-soft);
	font-size: 0.8rem;
	font-weight: 700;
}

body.tvc-page .tvc .tvc-chip {
	margin: 0;
	padding: 5px 11px;
	border: 1.5px solid var(--tvc-line);
	border-radius: 999px;
	background: #fff;
	color: var(--tvc-ink);
	font-size: 0.8rem;
	font-weight: 600;
	transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

body.tvc-page .tvc .tvc-chip:hover {
	border-color: var(--tvc-cyan);
	background: #ecfaff;
	transform: translateY(-1px);
}

/* ------------------------------------------------------------- results */

body.tvc-page .tvc .tvc-results {
	margin-top: 22px;
}

body.tvc-page .tvc .tvc-kpis {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 12px;
}

body.tvc-page .tvc .tvc-kpi {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border: 1.5px solid var(--tvc-line);
	border-radius: 14px;
	background: #fff;
	min-width: 0;
}

body.tvc-page .tvc .tvc-kpi-main {
	border: 0;
	background: linear-gradient(135deg, #0d1430 0%, #17306a 100%);
	color: #fff;
	box-shadow: 0 10px 26px rgba(13, 20, 48, 0.22);
}

body.tvc-page .tvc .tvc-kpi-l {
	color: var(--tvc-soft);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

body.tvc-page .tvc .tvc-kpi-main .tvc-kpi-l {
	color: #9fdcf0;
}

body.tvc-page .tvc .tvc-answer {
	font-size: 2.3rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

body.tvc-page .tvc .tvc-kpi-v {
	color: var(--tvc-navy);
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

body.tvc-page .tvc .tvc-answer small,
body.tvc-page .tvc .tvc-kpi-v small {
	font-size: 0.55em;
	font-weight: 700;
	opacity: 0.8;
}

body.tvc-page .tvc .tvc-kpi-s {
	color: var(--tvc-faint);
	font-size: 0.82rem;
	font-weight: 600;
}

body.tvc-page .tvc .tvc-gauge {
	position: relative;
	height: 12px;
	margin: 16px 0 6px;
	border-radius: 12px;
	background: #e6edf5;
	overflow: visible;
}

body.tvc-page .tvc .tvc-gauge-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-radius: 12px;
	background: linear-gradient(90deg, #6fdcf3, var(--tvc-cyan-d));
	transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.tvc-page .tvc .tvc-gauge-mark {
	position: absolute;
	top: -4px;
	width: 3px;
	height: 20px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: var(--tvc-coral);
	transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.tvc-page .tvc .tvc-gauge-cap {
	margin: 0 0 14px;
	color: var(--tvc-soft);
	font-size: 0.84rem;
}

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

body.tvc-page .tvc .tvc-key-v { background: var(--tvc-cyan-d); }
body.tvc-page .tvc .tvc-key-h { margin-left: 10px; background: var(--tvc-coral); }

body.tvc-page .tvc .tvc-conv {
	overflow-x: auto;
}

body.tvc-page .tvc table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: 0.92rem;
}

body.tvc-page .tvc th,
body.tvc-page .tvc td {
	display: table-cell;
	padding: 8px 12px;
	border: 0;
	border-bottom: 1px solid var(--tvc-line);
	text-align: left;
	font-variant-numeric: tabular-nums;
}

body.tvc-page .tvc th {
	background: var(--tvc-wash);
	color: var(--tvc-soft);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

body.tvc-page .tvc td + td,
body.tvc-page .tvc th + th {
	text-align: right;
}

body.tvc-page .tvc tr.is-on td {
	background: #ecfaff;
	color: var(--tvc-navy);
	font-weight: 700;
}

body.tvc-page .tvc .tvc-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

body.tvc-page .tvc .tvc-facts li {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--tvc-wash);
	font-size: 0.84rem;
	color: var(--tvc-soft);
}

body.tvc-page .tvc .tvc-facts li::before {
	content: none;
}

body.tvc-page .tvc .tvc-facts strong {
	color: var(--tvc-navy);
	font-size: 1.02rem;
}

body.tvc-page .tvc .tvc-out.is-err {
	padding: 16px 18px;
	border: 1.5px solid #f2c6cc;
	border-radius: 14px;
	background: #fff5f6;
	color: var(--tvc-err);
}

body.tvc-page .tvc .tvc-err-h {
	margin: 0 0 4px;
	font-weight: 800;
}

body.tvc-page .tvc .tvc-errs {
	margin: 0;
	padding-left: 18px;
}

/* -------------------------------------------------------------- panels */

body.tvc-page .tvc .tvc-panel {
	margin: 14px 0 0;
	border: 1.5px solid var(--tvc-line);
	border-radius: 14px;
	background: #fff;
}

body.tvc-page .tvc .tvc-panel summary {
	position: relative;
	padding: 13px 44px 13px 16px;
	color: var(--tvc-navy);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

body.tvc-page .tvc .tvc-panel summary::-webkit-details-marker {
	display: none;
}

body.tvc-page .tvc .tvc-panel summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 2px solid var(--tvc-soft);
	border-bottom: 2px solid var(--tvc-soft);
	transform: rotate(45deg);
	transition: transform 0.25s;
}

body.tvc-page .tvc .tvc-panel[open] summary::after {
	margin-top: -2px;
	transform: rotate(225deg);
}

body.tvc-page .tvc .tvc-panel-b {
	padding: 0 16px 16px;
	animation: tvc-in 0.3s ease both;
}

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

body.tvc-page .tvc .tvc-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 10px 0 10px 40px;
	border-bottom: 1px dashed var(--tvc-line);
	counter-increment: tvcstep;
	font-variant-numeric: tabular-nums;
}

body.tvc-page .tvc .tvc-step:last-child {
	border-bottom: 0;
}

body.tvc-page .tvc .tvc-step::before {
	content: counter(tvcstep);
	position: absolute;
	top: 10px;
	left: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ecfaff;
	color: var(--tvc-cyan-d);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 26px;
	text-align: center;
}

body.tvc-page .tvc .tvc-step-l {
	color: var(--tvc-navy);
	font-weight: 700;
}

body.tvc-page .tvc .tvc-step-f {
	color: var(--tvc-soft);
	font-size: 0.92rem;
}

body.tvc-page .tvc .tvc-step-s,
body.tvc-page .tvc .tvc-step-r {
	font-size: 0.92rem;
	overflow-wrap: anywhere;
}

body.tvc-page .tvc .tvc-dip-ctl {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin-bottom: 10px;
}

body.tvc-page .tvc .tvc-dip-ctl .tvc-field {
	width: 150px;
}

body.tvc-page .tvc .tvc-dip-note,
body.tvc-page .tvc .tvc-muted {
	margin: 0 0 8px;
	color: var(--tvc-soft);
	font-size: 0.86rem;
}

body.tvc-page .tvc .tvc-dip-wrap {
	max-height: 420px;
	overflow: auto;
	border: 1px solid var(--tvc-line);
	border-radius: 10px;
}

body.tvc-page .tvc .tvc-dip-t th {
	position: sticky;
	top: 0;
	z-index: 1;
}

/* ------------------------------------------------------------- actions */

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

body.tvc-page .tvc .tvc-btn {
	margin: 0;
	padding: 10px 16px;
	border: 1.5px solid #cdd4e1;
	border-radius: 10px;
	background: #fff;
	color: var(--tvc-navy);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
}

body.tvc-page .tvc .tvc-btn:hover {
	border-color: var(--tvc-cyan);
	transform: translateY(-1px);
}

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

body.tvc-page .tvc .tvc-btn-p:hover {
	background: #17306a;
	border-color: #17306a;
}

body.tvc-page .tvc .tvc-toast {
	color: #1f8a5b;
	font-size: 0.88rem;
	font-weight: 700;
	opacity: 0;
	transition: opacity 0.3s;
}

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

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

body.tvc-page .entry-content .tvc-figure {
	margin: 1.8em 0;
}

body.tvc-page .entry-content .tvc-figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

body.tvc-page .entry-content .tvc-figure figcaption {
	margin-top: 8px;
	color: #6b7388;
	font-size: 0.86rem;
	text-align: center;
}

body.tvc-page .entry-content .tvc-kbd {
	display: inline-block;
	padding: 0 6px;
	border: 1px solid #cdd4e1;
	border-radius: 6px;
	background: #f5f8fc;
	font-size: 0.92em;
	font-weight: 600;
}

body.tvc-page .entry-content .tvc-table {
	width: 100%;
	margin: 1.2em 0 1.6em;
	border-collapse: collapse;
	font-size: 0.95rem;
}

body.tvc-page .entry-content .tvc-table th,
body.tvc-page .entry-content .tvc-table td {
	display: table-cell;
	padding: 9px 12px;
	border: 0;
	border-bottom: 1px solid #e3e7ef;
	text-align: left;
	color: #1b2233;
}

body.tvc-page .entry-content .tvc-table th {
	background: #0d1430;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
}

/* ------------------------------------------------------------- phones */

@media (max-width: 860px) {
	body.tvc-page .tvc .tvc-main {
		grid-template-columns: minmax(0, 1fr);
	}
	body.tvc-page .tvc .tvc-right {
		order: -1;
	}
	body.tvc-page .tvc .tvc-kpis {
		grid-template-columns: 1fr 1fr;
	}
	body.tvc-page .tvc .tvc-kpi-main {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	body.tvc-page .tvc .tvc-shapes {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	body.tvc-page .tvc {
		padding: 16px 12px 16px;
		border-radius: 14px;
	}
	body.tvc-page .tvc .tvc-shapes {
		display: flex;
		gap: 6px;
		margin: 0 -12px 16px;
		padding: 2px 12px 6px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}
	body.tvc-page .tvc .tvc-shapes::-webkit-scrollbar {
		display: none;
	}
	body.tvc-page .tvc .tvc-shape {
		flex: 0 0 92px;
		scroll-snap-align: start;
		font-size: 0.74rem;
	}
	body.tvc-page .tvc .tvc-units,
	body.tvc-page .tvc .tvc-more {
		grid-template-columns: minmax(0, 1fr);
	}
	body.tvc-page .tvc .tvc-fill-row {
		grid-template-columns: 112px minmax(0, 1fr);
	}
	body.tvc-page .tvc .tvc-answer {
		font-size: 2rem;
	}
	body.tvc-page .tvc .tvc-kpi-v {
		font-size: 1.25rem;
	}
	body.tvc-page .tvc th,
	body.tvc-page .tvc td {
		padding: 7px 8px;
	}
	body.tvc-page .tvc .tvc-hint {
		display: none;
	}
	body.tvc-page .tvc .tvc-fill .tvc-hint {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.tvc-page .tvc *,
	body.tvc-page .tvc *::before,
	body.tvc-page .tvc *::after {
		animation: none;
		transition: none;
	}
	body.tvc-page .tvc .tvc-bub {
		display: 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.tvc-page .t33-page-main .entry-content {
	display: flow-root;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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